Possible to Directly access related records (Laravel ORM style)? This post may scream ignorance (Still delving into the plugin world). I'm coming from a background using mostly laravel for PHP application development and building a few plugins now on Craft has felt a bit verbose to access related objects. Is there any "nice" way to allow something like the following in Craft?

$phone = User::find(1)-&gt;phone;


or in terms of craft plugins, just include related data in the model itself instead of having dozens of findXbyId methods littering the code?

related: populateModel usage with eager loading related records

Any generic solutions?

Thanks!
Not 100% sure I'm following what you're looking for, but if you have a UserRecord defined with a phone relation, then something like this should do what you want:

$phone = UserRecord::model()-&gt;with('phone')-&gt;findById(1)-&gt;phone;