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