public function addLocation($locations)
     {
         $newItems = AnHelperArray::getIterator($locations);

         foreach ($newItems as $item) {
             if (! $this->locations->find($item)) {
                 $this->locations->insert($item);
             }
         }

         return $item;
     }
public function addLocation($locations)
     {
         $newItems = AnHelperArray::getIterator($locations);

         foreach ($newItems as $item) {
             if (! $this->locations->find($item)) {
                 $this->locations->insert($item);
             }
         }

         return $item;
     }
public function addLocation ( $ locations ) { $ newItems = AnHelperArray :: getIterator ( $ locations ) ; foreach ( $ newItems as $ item ) { if ( ! $ this -> locations -> find ( $ item ) ) { $ this -> locations -> insert ( $ item ) ; } } return $ item ; }
add locations to a locatable node

@param entity set of location entities
add locations to a locatable node