Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peer inheritance #408

Merged
merged 2 commits into from Jul 11, 2012
Merged

Peer inheritance #408

merged 2 commits into from Jul 11, 2012

Conversation

themouette
Copy link
Member

sometimes inheritance have the fieldNames translation lost.

this PR replaces the self keyword by peer classname in generated code.

@travisbot
Copy link

This pull request fails (merged e2adf4f1 into 8ace328).

@@ -2835,7 +2835,7 @@ public static function doCountJoinAllExcept".$thisTableObjectBuilder->getFKPhpNa
\$criteria->clearOrderByColumns(); // ORDER BY should not affect count

// Set the correct dbName
\$criteria->setDbName(self::DATABASE_NAME);
\$criteria->setDbName(".$this->getPeerClassname()."gc::DATABASE_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is wrong :p

@willdurand
Copy link
Contributor

Tests are broken because of a gc typo

@themouette
Copy link
Member Author

oups, my bad...

sometimes translation were lost due to concrete inheritance.
@travisbot
Copy link

This pull request passes (merged 66e7a59 into 8ace328).

willdurand added a commit that referenced this pull request Jul 11, 2012
@willdurand willdurand merged commit eb71aa1 into propelorm:master Jul 11, 2012
@willdurand
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants