hasMany('Criterion')->orderBy('name'); } /** * Return the objectives that the outcome belongs to * * @return Illuminate\Database\Eloquent\Model */ public function objectives() { return $this->belongsToMany('Objective', 'objective_outcome'); } }