propelorm/Propel — Issue #242: Single inheritance with namespaces
Author: auss
Created: 2011-12-27 11:17:05+00:00
State: open

Hi,

I have found another bug related to namespaces. While using single inheritance in my models, I've found out, that BaseQuery class extends ParentQuery class without adding use statement.

schema:

< database name="default" namespace="Vend\CBundle\Model\Product" defaultIdMethod="native" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xsd.propelorm.org/1.6/database.xsd">

< table name="product">
...

< /table>
< /database>

Generated BaseTypeOneQuery.php:

namespace Vend\CBundle\Model\Product\om;

use \Criteria;
use \PropelPDO;
use Vend\CBundle\Model\Product\TypeOneQuery;
use Vend\CBundle\Model\Product\ProductArchivePeer;
use Vend\CBundle\Model\Product\ProductArchiveQuery;

/**
* Skeleton subclass for representing a query for one of the subclasses of the 'product_archive' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package propel.generator.src.Vend.CBundle.Model.Product.om
*/
class BaseTypeOneQuery extends ProductQuery {