예제 #1
0
	public function update(array $data) {
		// find
		// da set automaticamnete
		$entity = $this->em->getReference ( 'Pc_help\Entity\Cliente', $data ['id'] );
		$entity = Configurator::configure ( $entity, $data );
		
		$this->em->persist ( $entity );
		$this->em->flush ();
		
		return $entity;
	}
예제 #2
0
 public function __construct($options = null)
 {
     Configurator::configure($this, $options);
 }