Joined March 2014
·

Martín Aimar

Argentina
·

Posted to Laravel 4 Eloquent ORM Relationships over 1 year ago

Found out that you have to define the relationship with camelCase but you can fetch the property with snake_case.

public function altOrigin() { ... }

Then:

$instance->alt_origin->name

Achievements
1 Karma
0 Total ProTip Views