|
@@ -146,6 +146,9 @@ class ONUController extends Controller
|
|
$location->setMapId($mapId);
|
|
$location->setMapId($mapId);
|
|
|
|
|
|
$em->persist($location);
|
|
$em->persist($location);
|
|
|
|
+
|
|
|
|
+ $object->setUpdated(new \DateTime());
|
|
|
|
+ //$em->persist($location);
|
|
|
|
|
|
$return[] = "LOCATION (id {$location->getId()}) {$action} - ONU (id {$object->getId()}) {$onu['text']} - " . json_encode($mapLocation);
|
|
$return[] = "LOCATION (id {$location->getId()}) {$action} - ONU (id {$object->getId()}) {$onu['text']} - " . json_encode($mapLocation);
|
|
}
|
|
}
|
|
@@ -215,7 +218,7 @@ class ONUController extends Controller
|
|
foreach ($napsQuery as $nap) {
|
|
foreach ($napsQuery as $nap) {
|
|
if ($nap->getExtraData() != null) {
|
|
if ($nap->getExtraData() != null) {
|
|
$nap->setContainer($this->container);
|
|
$nap->setContainer($this->container);
|
|
- // Seteamos la dirección - dirección o null
|
|
|
|
|
|
+ // Seteamos la direcci�n - direcci�n o null
|
|
$address = $nap->getData('address');
|
|
$address = $nap->getData('address');
|
|
$dataNap = [
|
|
$dataNap = [
|
|
'id' => $nap->getId(),
|
|
'id' => $nap->getId(),
|