lox / pheasant

A lightweight data mapper designed to take advantage of PHP 5.3+
http://getpheasant.com
MIT License
101 stars 21 forks source link

Allow nested relationship includes #143

Closed Jud closed 8 years ago

Jud commented 9 years ago

This fixes #130 and #131 and cleans up some errors that would occur (Undefined method "useCache") when using include.

You can include multiple relationships like:

Power::all()->includes(['Hero' => ['SecretIdentity']]);
Jud commented 9 years ago

This has the same fixes as #133 and #132, so those can be pulled in before, and I can rebase if needed.

bjornpost commented 9 years ago

I'll have a look at this and pull when 1.3.2 is released.

bjornpost commented 9 years ago

LGTM :+1: . Would you mind writing a couple of lines about this feature and how it works? I've made a start on improving the docs here.