Ejemplo n.º 1
0
 public function copyFromPost(&$object, $table)
 {
     parent::copyFromPost($object, $table);
     $object->date_add = Tools::getValue('q_date_add', date('Y-m-d', strtotime('now')));
     if (Tools::getValue('respuesta')) {
         $object->response->respuesta = Tools::getValue('respuesta');
         $object->response->date_add = Tools::getValue('r_date_add', date('Y-m-d H:i:s', strtotime('now')));
         $object->response->id_consulta = $object->id;
         $object->response->id_employee = $this->context->employee->id;
     }
     return $object;
 }