Added some basic methods to the models to get roperties from related models or
the related models themselfes.
This commit is contained in:
@@ -6,5 +6,13 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AccountClass extends Model
|
||||
{
|
||||
//
|
||||
/*
|
||||
* Get the IO-type of the account class.
|
||||
*
|
||||
* @return Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function ioType()
|
||||
{
|
||||
return $this->belongsTo('App\IOType');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user