• Youssef Gaber's avatar
    Fix belongsTo and belongToMany relations · 3c248001
    Youssef Gaber authored
    belongsTo and belongToMany would resolve to an incorrect relation name
    if it was a relation with a SQL model, due to MongoModel::belongsTo
    being the caller instead of MongoModel::relation which makes foreignKey
    become "belongs_to_id", the unit tests do not show this behavior because
    foreignKey is set explicitly.
    3c248001
Name
Last commit
Last update
src/Jenssegers Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
README.md Loading commit data...
composer.json Loading commit data...
phpunit.xml Loading commit data...