예제 #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->addRole("ROLE_PROFESSOR");
     $this->professors = new ArrayCollection();
     $this->students = new ArrayCollection();
 }
예제 #2
0
파일: Student.php 프로젝트: aBMania/mathsup
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->addRole("ROLE_STUDENT");
     $this->professors = new ArrayCollection();
     $this->repeatedLevels = new ArrayCollection();
     $this->balance = 0;
 }