Ejemplo n.º 1
0
 /**
  * Delete models.
  */
 protected function deleteModels()
 {
     $ref = $this->relation->getReference();
     if ($ref->isPermitted(Entity::DELETE)) {
         $ref->getRepository()->delete($this->getIdsToDelete());
     }
 }
Ejemplo n.º 2
0
 /**
  * @param Model $model
  */
 protected function fillModel(Model $model)
 {
     parent::fillModel($model);
     $this->relation->attach($model, $this->parent);
 }