Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Foo
- id
- barA()
- barB()
- Bar
- id
- foo()
- Foo{
- public function barA(){
- return $this->belongsTo('AppBar','bar_a_id');
- }
- public function barB(){
- return $this->belongsTo('AppBar','bar_b_id');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement