Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Relations from array get wrong default values #278

Open
igorsantos07 opened this issue Nov 9, 2015 · 0 comments
Open

Relations from array get wrong default values #278

igorsantos07 opened this issue Nov 9, 2015 · 0 comments
Assignees
Labels

Comments

@igorsantos07
Copy link
Member

Some relations, such as belongsTo, get their default values for optional fields from debug_backtrace(). It does not work as expected, as we've removed one layer from the callstack.

The best solution for this would be feeding the relationship name into the method.

All relation methods that reference the backtrace should present the same issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant