Inheritance: extends Nextras\Orm\Mapper\BaseMapper
 public function remove(IEntity $parent, array $remove)
 {
     $id = $parent->getValue('id');
     $data =& $this->mapper->getRelationshipDataStorage($this->metadata->name);
     foreach ($remove as $removeId) {
         unset($data[$id][$removeId]);
     }
 }
Exemple #2
0
 public function __call($name, $args)
 {
     if (isset($this->methods[strtolower($name)])) {
         return Callback::invokeArgs($this->methods[strtolower($name)], $args);
     } else {
         return parent::__call($name, $args);
     }
 }