/** * Renvoie les Production liées à un Infrastructure * @param Infrastructure $infrastructure * @return ProductionCollection */ public static function getByInfrastructure(Infrastructure $infrastructure) { $req = "SELECT * FROM production WHERE idInfrastructure = '" . $infrastructure->getIdInfrastructure() . "';"; return DbHandler::collFromQuery($req, 'Production', 'ProductionCollection'); }