説明なし

AnnualPlan.php 347B

1234567891011121314151617
  1. <?php
  2. class AnnualPlan extends \Eloquent {
  3. protected $fillable = [];
  4. // return the quinquennium the annual plan belongs to
  5. public function quinquennium()
  6. {
  7. return $this->belongsTo('Quinquennium');
  8. }
  9. // return all the outcomes in the annual plan
  10. public function annualPlanOutcomes()
  11. {
  12. return $this->hasMany('AnnualPlanOutcome');
  13. }
  14. }