Skip to content

Commit

Permalink
fixes #135
Browse files Browse the repository at this point in the history
Error and BD break was introduced in 5ce2674
this commit fixes it
  • Loading branch information
themouette committed Dec 13, 2011
1 parent fccb7d9 commit 9d8e12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/lib/builder/om/PHP5PeerBuilder.php
Expand Up @@ -537,7 +537,7 @@ public function addInheritanceColumnConstants(&$script)
foreach ($col->getChildren() as $child) {
$childBuilder = $this->getMultiExtendObjectBuilder();
$childBuilder->setChild($child);
$fqcn = addslashes('\\'.$childBuilder->getFullyQualifiedClassname());
$fqcn = addslashes($childBuilder->getFullyQualifiedClassname());

$script .= "
/** A key representing a particular subclass */
Expand All @@ -547,7 +547,7 @@ public function addInheritanceColumnConstants(&$script)
if (strtoupper($child->getClassname()) != strtoupper($child->getKey())) {
$script .= "
/** A key representing a particular subclass */
const CLASSKEY_".strtoupper($child->getClassname())." = '" . $fqcn . "';
const CLASSKEY_".strtoupper($child->getClassname())." = '" . $child->getKey() . "';
";
}

Expand Down

0 comments on commit 9d8e12a

Please sign in to comment.