Doctrine 2 Postgresql stock procedure mapping <p>i 'd like to associate to a doctrine entity a postgresql stock procedure (which returns a table as result) instead of a table</p> <p>Ex : the procedure Get_Uuser(sexe, age) search all the users for the selected parameters et returns a collection of user_id (names user_id_rech for exemple).</p> <p>In pgsql, I can use this stock procedure as a table : </p> <p>select user_name from User left join Get_User('H', 45) where User.user_id = user_id_rech</p> <p>The stock procedure is used like a table here.</p> <p>I don't think that doctrine 2 allows to map a stock procedure, but I'd like that someone can confirm that to me.</p> <p>Thanks</p>