public function eliminar($id) { $area = new Areas(); $area->setAreasId($id); $areasDAO = new AreasDAO($this->tableGateway); $areasDAO->eliminar($area); }
public function eliminar(Areas $area) { $this->tableGateway->delete(array('areas_id' => $area->getAreasId())); }