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

Include className in calls to NamingStrategy joinColumnName method #1252

Closed
wants to merge 4 commits into from
Closed

Conversation

jacksleight
Copy link
Contributor

For consistency with propertyToColumnName, include the class name when generating names for join columns as well, for instances where you want to name columns (inc. join columns) based on the class that defined them.

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-3496

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius
Copy link
Member

@jacksleight this requires relevant test cases with an example naming strategy using this sort of API addition.

@jacksleight
Copy link
Contributor Author

Apologies for missing those. I have now included an example naming strategy class that makes use of this feature (JoinColumnClassNamingStrategy), and the relevant unit tests.

@Ocramius
Copy link
Member

Merged manually after reverting the signature BC break. I also moved the newly introduced class to the test suite dir.

Thanks @jacksleight!

master: 84562bc

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.

3 participants