I have a Quote model:
class Quote extends Eloquent {
public function quote_lines() {
return $this->hasMany(\'QuoteLine\');
}
}
>
At the very least, it should be returning an empty eloquent object.
In your QuoteLine
model, make sure you are telling Eloquent your table name.
public $table = 'quote_lines';
In setting up your relationship on your Quote
model, be sure it knows what your foreign key is to link to your quote_lines
table.
return $this->hasMany('QuoteLine','quote_line_id');