1234567891011121314151617181920212223242526 |
- <?php
-
- use Illuminate\Database\Eloquent\SoftDeletingTrait;
-
- class Outcome extends Eloquent
- {
- use SoftDeletingTrait;
- protected $dates = ['deleted_at'];
-
- protected $fillable= array('name', 'definition');
-
- public function criteria()
- {
- return $this->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');
- }
- }
|