Skip to content

Commit

Permalink
Merge pull request #490 from jpetitcolas/master
Browse files Browse the repository at this point in the history
Fix issue #480 with concrete_inheritance and namespace
  • Loading branch information
willdurand committed Oct 25, 2012
2 parents 9d4763a + 624b87b commit d1b1334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion generator/lib/builder/om/PHP5ObjectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
Expand Down

0 comments on commit d1b1334

Please sign in to comment.