Permalink
Browse files

Merge pull request #490 from jpetitcolas/master

Fix issue #480 with concrete_inheritance and namespace
  • Loading branch information...
2 parents 9d4763a + 624b87b commit d1b1334e7239635fa7b1966b4cfb4b0e1c2d1683 @willdurand willdurand committed Oct 25, 2012
@@ -207,7 +207,7 @@ public function getParentOrCreate(\$con = null)
if (null === (\$parent = \$this->get". $parentClass . "(\$con))) {
\$parent = new " . $parentClass . "();
}
- \$parent->set" . $this->getParentTable()->getColumn($this->getParameter('descendant_column'))->getPhpName() . "('" . $this->builder->getStubObjectBuilder()->getClassname() . "');
+ \$parent->set" . $this->getParentTable()->getColumn($this->getParameter('descendant_column'))->getPhpName() . "('" . $this->builder->getStubObjectBuilder()->getFullyQualifiedClassname() . "');
return \$parent;
} else {
@@ -253,7 +253,7 @@ protected function addClassBody(&$script)
$this->declareClassFromBuilder($this->getStubPeerBuilder());
$this->declareClassFromBuilder($this->getStubQueryBuilder());
$this->declareClasses(
- 'Propel', 'PropelException', 'PDO', 'PropelPDO', 'Criteria',
+ 'Propel', 'PropelException', 'PDO', 'PropelPDO', 'PropelQuery', 'Criteria',
'Persistent', 'BasePeer', 'PropelCollection',
'PropelObjectCollection', 'Exception'
);

0 comments on commit d1b1334

Please sign in to comment.