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

Already on GitHub? Sign in to your account

>=2nd order nested Relationships should use model name as accessor #1027

Open
paveleremin opened this Issue Dec 13, 2013 · 0 comments

Comments

Projects
None yet
2 participants

Now if you do this:
$result = ModelA::first(array(
'with' => array('ModelB', 'ModelB.ModelC'),
));

Data of ModelC will be abble like this:
$result->modelb->modelc_table_name

I think logical will be if data of ModelC will be abble like this:
$result->modelb->modelc

@davidpersson davidpersson added enhancement and removed rfc labels May 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment