Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

AggregateColumn Behavior generates bad links to class in findRelated function when using class prefix. #53

Open
KendallHopkins opened this Issue Aug 19, 2011 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

KendallHopkins commented Aug 19, 2011

It seems that the AggregateColumn Behavior isn't compatible with the class prefix setting. I've marked the two incorrect line below.

Actual:

/**
 * Finds the related store_category objects and keep them for later <~ this line
 *
 * @param PropelPDO $con A connection object
 */
protected function findRelatedstore_categorys($con)
{
        $criteria = clone $this;
        if ($this->useAliasInSQL) {
                $alias = $this->getModelAlias();
                $criteria->removeAlias($alias);
        } else {
                $alias = '';
        }
        $this->store_categorys = store_categoryQuery::create() <~ and this line
                ->joinstore_category_product($alias)
                ->mergeWith($criteria)
                ->find($con);
}

Expected:

/**
 * Finds the related DB_store_category objects and keep them for later <~ this line
 *
 * @param PropelPDO $con A connection object
 */
protected function findRelatedstore_categorys($con)
{
        $criteria = clone $this;
        if ($this->useAliasInSQL) {
                $alias = $this->getModelAlias();
                $criteria->removeAlias($alias);
        } else {
                $alias = '';
        }
        $this->store_categorys = DB_store_categoryQuery::create() <~ and this line
                ->joinstore_category_product($alias)
                ->mergeWith($criteria)
                ->find($con);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment