Esempio n. 1
0
 public function offsetUnset($index)
 {
     if (!$this->exists($index)) {
         return;
     }
     $value = $this->items[$index];
     $this->checkInstanceValueClass($value);
     $model = $this->getModel();
     $resolver = $model->getSchema()->getResolver();
     $value->{$resolver->end->field_to_start->getName()} = null;
     $this->addPersistStack('save', $value);
     parent::offsetUnset($index);
 }