fuel / orm

Fuel PHP Framework - Fuel v1.x ORM
http://fuelphp.com/docs/packages/orm/intro.html
152 stars 96 forks source link

Fix issue with nested relationship #437

Closed AdamSGit closed 4 years ago

AdamSGit commented 4 years ago

I also noticed that, in case of nested relationship, recents changes would create an empty model with an empty key for the parent relation, because of the lack of check if target is not null. This pull request fix it.

WanWizard commented 4 years ago

Are you sure you mean else if and not elseif, as they will behave differently if more is changed.

I prefer it without the space, it makes it clear what was meant.

AdamSGit commented 4 years ago

Sure thing.