protected function createEntity()
 {
     $obj = new TipoVehiculo();
     $obj->setId(isset($_POST['hid']) ? $_POST['hid'] : 0);
     $obj->setNombre($_POST['txtnom']);
     return $obj;
 }
예제 #2
0
 public function createEntity($row)
 {
     $obj = new TipoVehiculo();
     $obj->setId($row['tvId']);
     $obj->setNombre($row['tvNombre']);
     return $obj;
 }