8000 [Bridge] [Propel1] Fixed guessed relations by ClementGautier · Pull Request #9222 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Bridge] [Propel1] Fixed guessed relations #9222

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

Merged
merged 1 commit into from
Oct 7, 2013
Merged

[Bridge] [Propel1] Fixed guessed relations #9222

merged 1 commit into from
Oct 7, 2013

Conversation

ClementGautier
Copy link
Contributor
QA
Bug fixyes
Feature additionno
Backwards compatibility breakno
Symfony2 tests passyes
Fixes the following ticketsN/A
TodoN/A
License of the codeMIT
Documentation PRN/A

The PropelTypeGuesser did not match OneToMany relations properly. For example if you have a Author class with Comments attributes the guesser would guess "Comment" instead of "Comments".

I added some tests to ensure the non regression.

@fabpot
Copy link
Member
fabpot commented Oct 7, 2013

ping @willdurand

@willdurand
Copy link
Contributor

Looks good to me.

fabpot added a commit that referenced this pull request Oct 7, 2013
This PR was merged into the 2.2 branch.

Discussion
----------

[Bridge] [Propel1] Fixed guessed relations

<table>
  <tr><th>Q</th><th>A</th></tr>
  <tr><td>Bug fix</td><td>yes</td></tr>
  <tr><td>Feature addition</td><td>no</td></tr>
  <tr><td>Backwards compatibility break</td><td>no</td></tr>
  <tr><td>Symfony2 tests pass</td><td>yes</td></tr>
  <tr><td>Fixes the following tickets</td><td>N/A</td></tr>
  <tr><td>Todo</td><td>N/A</td></tr>
  <tr><td>License of the code</td><td>MIT</td></tr>
  <tr><td>Documentation PR</td><td>N/A</td></tr>
</table>

The `PropelTypeGuesser` did not match OneToMany relations properly. For example if you have a `Author` class with `Comments` attributes the guesser would guess "Comment" instead of "Comments".

I added some tests to ensure the non regression.

Commits
-------

0b1e95f Fixed propel guessed relations
@fabpot fabpot merged commit 0b1e95f into symfony:2.2 Oct 7, 2013
@ClementGautier ClementGautier deleted the fix-propel-guessed-relations branch October 7, 2013 09:41
Sign up for free to join this conversation on GitHub. Already have an accou 5AA5 nt? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0