/**
  * Transforms an object (register) to a string (id).
  *
  * @param  Register|null $register
  * @return string
  */
 public function transform($register)
 {
     if (null === $register) {
         return '';
     }
     return $register->getId();
 }
Esempio n. 2
0
 /**
  * Remove register
  *
  * @param \BmsConfigurationBundle\Entity\Register $register
  */
 public function removeRegister(\BmsConfigurationBundle\Entity\Register $register)
 {
     $this->registers->removeElement($register);
 }