private function crearFactura(Paciente $entity)
 {
     $factura = new Factura();
     $factura->setTitular($entity->getNombreApellido());
     $factura->setFechahoraemision(new \DateTime('now'));
     $em = $this->getDoctrine()->getManager();
     $em->persist($factura);
     $em->flush();
     return $factura;
 }
Example #2
0
 public function getNombresPaciente()
 {
     return sprintf('%s - %s', $this->idpaciente->getNombres(), $this->idpatologia->getNombre());
 }
Example #3
0
 public function getNombreApellidoFechaHora()
 {
     return sprintf('%s - %s', $this->idpaciente->getNombreApellido(), $this->idDisponibilidad->getFechaHora());
 }