Example #1
0
	public function insert(array $data) {
		$entity = new problemaService ( $data );
		
		$maquina = $this->em->getReference ( "Pc_help\Entity\Maquina", $data ['id'] );
		
		$entity->setMaquina ( $maquina );
		$this->em->persist ( $entity );
		$this->em->flush ();
		return $entity;
	}
 /**
  * {@inheritDoc}
  */
 public function toArray()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'toArray', array());
     return parent::toArray();
 }