Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixed aliasing of join conditions when passing a 'class' param #5

Open
wants to merge 38 commits into
base: master
Choose a base branch
from

Conversation

ProLoser
Copy link

Lots of fixes, upgrades, updates and other crap. I'm hoping everyone else in the chain will see this and update their references too.

giulianob and others added 30 commits June 5, 2009 09:26
 * It provides the following new features:
 * -Plays nice with Containable which means that you can force INNER JOINS for hasOne/belongsTo and at the same time do a query on a hasMany/HABTM relationship.
 * 
 * -The original code required the relationship to be established from the target to the source. 
 * (e.g. if you are linking Post => User then User would have to define a hasOne Post relationship. 
 * However, this proves problematic when doing on-the-fly binds as you would have to bind on more than just the model you are querying from)
 *
…l's fields when none given in the find options
…ip (hasMany, hasOne) is aliased and the alias is related using a belongsTo, the aliased relationship is not treated as belongsTo and additional records may be returned
@ProLoser
Copy link
Author

Pinging @giulianob to get everyone upstream to update

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

Successfully merging this pull request may close these issues.

3 participants