Noob question of model propertise


Pardon me for asking as am new to YII and somehow to OOP, as I created an Employee model using GII, i saw this comment i the Employee.php Model:



  • This is the model class for table "employee".

  • The followings are the available columns in table ‘employee’:

  • @property integer $id

  • @property integer $departmentId

  • @property string $firstName

  • @property string $lastName

  • @property string $email

  • @property integer $ext

  • @property string $hireDate

  • @property string $leaveDate

  • The followings are the available model relations:

  • @property Department $department


class Employee extends CActiveRecord



 * Returns the static model of the specified AR class.

 * @return Employee the static model class


I’m just a bit lost as how I understood it in classes is that propertise are declared in the class like:

private $id;

private $departmentId;

private $firstName

and so on and so forth, may I ask why I cannot see this in the model class nor in the controller class or I just understand it all wrong?

Thank you and Best Regards,


got it already through the documentation: