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