{"issue":{"created_at":"2011-12-03T18:36:30Z","state":"open","updated_at":"2011-12-03T20:31:10Z","user":{"gravatar_id":"5ff08d90b55f2295ec80ed63585aee7c","id":283700,"url":"https://api.github.com/users/gossi","avatar_url":"https://secure.gravatar.com/avatar/5ff08d90b55f2295ec80ed63585aee7c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"gossi"},"comments":1,"body":"Lets assume, in my schema, I have a table `Book` and therefore a query called `BookQuery`. So, if I extend my `Book` class manually, like this one:\r\n\r\n    class Drama extends Book\r\n\r\nI have no chance to query for `Drama`. I could extend a `DramaQuery` class but that query would return a `Book` instance:\r\n\r\n    $r = DramaQuery::create()->findOne();\r\n    var_dump($r); // Book\r\n\r\nLooking for some API that modify the returned instance from *Query find methods to whatever I want here.\r\n\r\nThanks","assignee":null,"id":2438525,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":215,"title":"Query for own extended classes","html_url":"https://github.com/propelorm/Propel/issues/215","closed_at":null,"url":"https://api.github.com/repos/propelorm/Propel/issues/215","milestone":null},"action":"created","comment":{"created_at":"2011-12-03T20:31:09Z","updated_at":"2011-12-03T20:31:09Z","user":{"gravatar_id":"c44ab7aed2bd14539fafb9175fcf2085","id":217628,"url":"https://api.github.com/users/willdurand","avatar_url":"https://secure.gravatar.com/avatar/c44ab7aed2bd14539fafb9175fcf2085?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"willdurand"},"body":"You can write your own formatter for instance.\r\n\r\nWilliam\r\n\r\nEnvoyé de mon iPhone\r\n\r\nLe 3 déc. 2011 à 19:36, Thomas Gossmann<reply@reply.github.com> a écrit :\r\n\r\n> Lets assume, in my schema, I have a table `Book` and therefore a query called `BookQuery`. So, if I extend my `Book` class manually, like this one:\r\n> \r\n>    class Drama extends Book\r\n> \r\n> I have no chance to query for `Drama`. I could extend a `DramaQuery` class but that query would return a `Book` instance:\r\n> \r\n>    $r = DramaQuery::create()->findOne();\r\n>    var_dump($r); // Book\r\n> \r\n> Looking for some API that modify the returned instance from *Query find methods to whatever I want here.\r\n> \r\n> Thanks\r\n> \r\n> --- \r\n> Reply to this email directly or view it on GitHub:\r\n> https://github.com/propelorm/Propel/issues/215","id":3002785,"url":"https://api.github.com/repos/propelorm/Propel/issues/comments/3002785"}}