public function setUp() { parent::setUp(); $this->hasMany('AbstractClass as Classes', array('refClass' => 'ClassPerClient', 'local' => 'client_id', 'foreign' => 'abstract_class_id')); $this->hasMany('ClassPerClient as ClassesPerClient', array('local' => 'id', 'foreign' => 'client_id')); $this->hasMany('MedicalRevision as MedicalRevisions', array('local' => 'id', 'foreign' => 'client_id')); $this->hasMany('MembershipFee as MembershipFees', array('local' => 'id', 'foreign' => 'client_id')); }
public function __construct($name, $surname, $age, $salary, $gender = self::GENDER_MALE) { parent::__construct($name, $surname, $age, $gender); $this->salary = $salary; }
public function __construct($name, $surname, $age, $gender, $salary, $commision) { parent::__construct($name, $surname, $age, $gender); $this->setSalary($salary); $this->setCommision($commision); }
public function setUp() { parent::setUp(); $this->hasMany('AbstractClass as Classes', array('refClass' => 'ClassPerCoach', 'local' => 'coach_id', 'foreign' => 'abstract_class_id')); $this->hasMany('ClassPerCoach as ClassesPerCoach', array('local' => 'id', 'foreign' => 'coach_id')); }