Exemplo n.º 1
0
 public function update(Person $person, $nameFirst, $nameLast)
 {
     $credentialsCollection = $person->getCredentials();
     $credentialsCollection->first();
     $credentials = $credentialsCollection->current();
     $credentials->setNameFirst($nameFirst);
     $credentials->setNameLast($nameLast);
     $this->objectManager->persist($credentials);
     $this->objectManager->flush();
 }
 /**
  * {@inheritDoc}
  */
 public function getCredentials()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCredentials', array());
     return parent::getCredentials();
 }