| 1234567891011121314151617181920 |
- <?php
- class UserCustomer extends Model {
- protected static $table = "user_customer";
- protected static $id_field = ["user_id", "customer_id"];
- protected static $fillable_fields = ["user_id", "customer_id"];
- // Object methods
- public function getUser() {
- return User::get($this->user_id);
- }
- public function getCustomer() {
- return Customer::get($this->customer_id);
- }
- }
- ?>
|