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; }
public function getNombresPaciente() { return sprintf('%s - %s', $this->idpaciente->getNombres(), $this->idpatologia->getNombre()); }
public function getNombreApellidoFechaHora() { return sprintf('%s - %s', $this->idpaciente->getNombreApellido(), $this->idDisponibilidad->getFechaHora()); }