Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- |id|first|last|..........
- |1 |.....................
- |2 |.....................
- |id|roll_id|member_id|status|
- |1 |1 |1 |P |
- |2 |1 |2 |V |
- |3 |2 |1 |A |
- |4 |2 |2 |C |
- |id|roll_date |roll_year|
- |1 |2019-03-01|2019 |
- |2 |2019-03-02|2019 |
- public function roll()
- {
- return $this->hasMany('AppRoll');
- }
- public function rollmapping()
- {
- return $this->hasOne('AppRollmapping', 'id','roll_id');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement