/**
  * {@inheritdoc}
  */
 public function set($key, $value)
 {
     parent::set($key, $value);
     $this->changed();
     if (is_object($value) && $this->em) {
         $this->em->getUnitOfWork()->cancelOrphanRemoval($value);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function set($key, $value)
 {
     parent::set($key, $value);
     $this->changed();
 }
 /**
  * {@inheritdoc}
  */
 public function set($key, $value)
 {
     if (null === $key) {
         parent::add($value);
     } else {
         parent::set($key, $value);
     }
     $this->changed();
 }
Beispiel #4
0
 /**
  * {@inheritdoc}
  */
 public function set($key, $value)
 {
     $this->throwIfNotForm($value);
     parent::set($key, $value);
 }
Beispiel #5
0
 /**
  * {@inheritdoc}
  */
 public function set($key, $value)
 {
     $this->verifyTypeIntegrity($value);
     $this->verifyUnique($key, $value);
     parent::set($key, $value);
 }