コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: Cita.php プロジェクト: sanborino/clinica
 public function getNombreApellidoFechaHora()
 {
     return sprintf('%s - %s', $this->idpaciente->getNombreApellido(), $this->idDisponibilidad->getFechaHora());
 }