select()->where('idCommande = ?', $id); $result = $this->getAdapter()->fetchAll($sql); return $result; } public function getCommandesBySiren($siren) { $sql = $this->select() ->where('siren = ?', $siren) ->order('dateCommande ASC'); $result = $this->getAdapter()->fetchAll($sql); return $result; } public function getCommandesByLogin($login) { $sql = $this->select() ->where('login = ?', $login) ->order('dateCommande ASC'); $result = $this->getAdapter()->fetchAll($sql); return $result; } }