diff --git a/model/dao/SectorDAO/PostgreSQLSectorDAO.php b/model/dao/SectorDAO/PostgreSQLSectorDAO.php index ec740f453..9c9d7d328 100644 --- a/model/dao/SectorDAO/PostgreSQLSectorDAO.php +++ b/model/dao/SectorDAO/PostgreSQLSectorDAO.php @@ -196,44 +196,3 @@ public function delete(SectorVO $sectorVO) { return $affectedRows; } } - - - - -/*//Uncomment these lines in order to do a simple test of the Dao - - - -$dao = new PostgreSQLSectorDAO(); - -// We create a new sector - -$sector = new sectorVO(); - -$sector->setName("Telenet"); - -$dao->create($sector); - -print ("New sector Id is ". $sector->getId() ."\n"); - -// We search for the new Id - -$sector = $dao->getById($sector->getId()); - -print ("New sector Id found is ". $sector->getId() ."\n"); - -// We update the sector with a differente name - -$sector->setName("Intranet"); - -$dao->update($sector); - -// We search for the new name - -$sector = $dao->getById($sector->getId()); - -print ("New sector name found is ". $sector->getName() ."\n"); - -// We delete the new sector - -$dao->delete($sector);*/