{"issue":{"created_at":"2011-10-08T03:54:56Z","state":"closed","updated_at":"2011-11-23T13:07:42Z","user":{"gravatar_id":"0f6dfdaeaa13420f2dd8301b0f2cbd38","id":359076,"url":"https://api.github.com/users/joke2k","login":"joke2k","avatar_url":"https://secure.gravatar.com/avatar/0f6dfdaeaa13420f2dd8301b0f2cbd38?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":4,"body":">Core\\Post\r\n>Core\\Author\r\n>Other\\AudioPost\r\n>Other\\VideoPost\r\n\r\n    <database namespace=\"Core\">\r\n    ...\r\n    <table name=\"post_item\" phpName=\"Post\"> \r\n      ...\r\n            <column name=\"class_key\" type=\"INTEGER\" inheritance=\"single\" >\r\n                <inheritance key=\"1\" class=\"Post\" />\r\n                <inheritance key=\"2\" class=\"AudioPost\" extends=\"Post\" package=\"other\" />\r\n                <inheritance key=\"3\" class=\"VideoPost\" extends=\"Post\" package=\"other\" />\r\n            </column>\r\n    </table>\r\n    <table name=\"post_author\" phpName=\"Author\"> ...</table>\r\n\r\ncalling :\r\n\r\n>foreach ( PostQuery::create()->find() as $post ) ...\r\n\r\nreturn :\r\n\r\n>Fatal error: Class 'Post' not found in ...**BasePostPeer.php**\r\n\r\n>PropelModelPager->getIterator( )\t..\\PropelModelPager.php:76\r\n>PropelModelPager->getResults( )\t..\\PropelModelPager.php:391\r\n>ModelCriteria->find( ??? )\t..\\PropelModelPager.php:101\r\n>PropelObjectFormatter->format( ??? )\t..\\ModelCriteria.php:1139\r\n>PropelObjectFormatter->getAllObjectsFromRow(  [...] )\t..\\PropelObjectFormatter.php:49\r\n>Core\\om\\BasePostPeer::populateObject( [...], 0,**FALSE** )\t..\\PropelObjectFormatter.php:87\r\n\r\npopulateObject call getOMClass with-out-Prefix that returns \"Post\" without a namespace.\r\n\r\n\r\nNeeds to improve a behaviour?","assignee":null,"id":1851019,"number":135,"labels":[{"name":"Namespaces","color":"F010FA","url":"https://api.github.com/repos/propelorm/Propel/labels/Namespaces"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Single inheritance with different namespace classes","closed_at":"2011-11-23T13:07:41Z","html_url":"https://github.com/propelorm/Propel/issues/135","milestone":null,"url":"https://api.github.com/repos/propelorm/Propel/issues/135"},"action":"closed"}