Açıklama Yok

AnnualCycle.php 587B

1234567891011121314151617181920212223
  1. <?php
  2. class AnnualCycle extends \Eloquent
  3. {
  4. protected $fillable = [];
  5. protected $table = 'annual_cycle';
  6. //protected $appends = ["outcomes"];
  7. // return outcomes in annual plan to
  8. public function annual_plans()
  9. {
  10. return $this->hasMany('AnnualPlan');
  11. }
  12. public function semester_start()
  13. {
  14. return $this->belongsTo("Semester", "annual_cycle_semester_start_foreign", "semester_start");
  15. }
  16. public function semester_end()
  17. {
  18. return $this->belongsTo("Semester", "annual_cycle_semester_end_foreign", "semester_end");
  19. }
  20. }