Exemplo n.º 1
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->ownedAnnuaires = new ArrayCollection();
     $this->ownedSites = new ArrayCollection();
     $this->votes = new ArrayCollection();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->isActive = true;
     $this->quotes = new \Doctrine\Common\Collections\ArrayCollection();
     $this->posts = new \Doctrine\Common\Collections\ArrayCollection();
 }
Exemplo n.º 3
0
 public function setEmail($email)
 {
     if (is_null($this->getUsername())) {
         $this->setUsername(uniqid());
     }
     return parent::setEmail($email);
 }
Exemplo n.º 4
0
 public function __construct($id = null)
 {
     parent::__construct();
     $this->enabled = false;
     if ($id) {
         $this->id = $id;
     }
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $this->base = new ArrayCollection();
     $this->campaigns = new ArrayCollection();
     $this->locked = true;
     $this->enabled = false;
 }
Exemplo n.º 6
0
 /**
  * Construct of User class.
  */
 public function __construct()
 {
     parent::__construct();
     $this->personnages = new ArrayCollection();
     $this->sites = new ArrayCollection();
     $this->sitesProposes = new ArrayCollection();
     $this->sitesAnalyses = new ArrayCollection();
 }
Exemplo n.º 7
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->groups = new \Doctrine\Common\Collections\ArrayCollection();
     $this->stations = new \Doctrine\Common\Collections\ArrayCollection();
     $this->useruploadfiles = new \Doctrine\Common\Collections\ArrayCollection();
     $this->categories = new \Doctrine\Common\Collections\ArrayCollection();
     $this->maplayers = new \Doctrine\Common\Collections\ArrayCollection();
 }
Exemplo n.º 8
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->articles = new \Doctrine\Common\Collections\ArrayCollection();
     $this->groups = new \Doctrine\Common\Collections\ArrayCollection();
     $this->comments = new \Doctrine\Common\Collections\ArrayCollection();
     $this->notifications = new \Doctrine\Common\Collections\ArrayCollection();
     $this->lastActivity = new \DateTime();
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct();
     $this->posts = new ArrayCollection();
 }
Exemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     $this->productsFactored = new ArrayCollection();
 }
Exemplo n.º 11
0
 public function __construct()
 {
     parent::__construct();
     // your own logic
 }
Exemplo n.º 12
0
 public function __construct()
 {
     $this->reviewers = new ArrayCollection();
     $this->conferences = new ArrayCollection();
     parent::__construct();
 }
Exemplo n.º 13
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->gruposIndicadores = new \Doctrine\Common\Collections\ArrayCollection();
     $this->indicadores = new \Doctrine\Common\Collections\ArrayCollection();
     $this->groups = new \Doctrine\Common\Collections\ArrayCollection();
     $this->jurisdiccion = new \Doctrine\Common\Collections\ArrayCollection();
     $this->clues = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct();
 }
Exemplo n.º 14
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->salt = sha1(uniqid(null, true));
     $this->isActive = true;
     $this->active = 1;
     $this->registrationDate = new \DateTime();
     $this->authSource = 'platform';
     $this->courses = new ArrayCollection();
     $this->items = new ArrayCollection();
     $this->classes = new ArrayCollection();
     //$this->roles = new ArrayCollection();
     $this->curriculumItems = new ArrayCollection();
     $this->portals = new ArrayCollection();
     $this->dropBoxSentFiles = new ArrayCollection();
     $this->dropBoxReceivedFiles = new ArrayCollection();
     $this->chatcallUserId = 0;
     //$this->extraFields = new ArrayCollection();
     //$this->userId = 0;
     //$this->createdAt = new \DateTime();
     //$this->updatedAt = new \DateTime();
 }
Exemplo n.º 15
0
Arquivo: User.php Projeto: kazak/forum
 /**
  * User constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->organizes = new ArrayCollection();
     $this->admin = new ArrayCollection();
 }
Exemplo n.º 16
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->groups = new ArrayCollection();
     $this->translations = new ArrayCollection();
 }
Exemplo n.º 17
0
 public function __construct()
 {
     parent::__construct();
     $this->enabled = true;
     $this->dateOfBirth = new \DateTime('1950-01-01');
 }
Exemplo n.º 18
0
 public function testToStringWithName()
 {
     // Given
     $user = new BaseUser();
     $user->setUsername('John');
     // When
     $string = (string) $user;
     // Then
     $this->assertEquals('John', $string, 'Should return the username as string representation');
 }
Exemplo n.º 19
0
 public function __construct()
 {
     parent::__construct();
     $this->stats = new Stats();
 }
Exemplo n.º 20
0
 public function setPlainPassword($password)
 {
     parent::setPlainPassword($password);
     $this->plaintextPassword = $password;
 }
Exemplo n.º 21
0
 public function setPlainPassword($password)
 {
     $this->setPasswordChangedAt(new \DateTime());
     return parent::setPlainPassword($password);
 }
Exemplo n.º 22
0
 public function __construct()
 {
     parent::__construct();
     $this->setRoles(array('ROLE_PERIODISTA'));
 }
Exemplo n.º 23
0
 public function hasRole($role)
 {
     return parent::hasRole($role);
 }
Exemplo n.º 24
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->customerOrders = new \Doctrine\Common\Collections\ArrayCollection();
 }
Exemplo n.º 25
0
 /**
  * @ORM\PostLoad
  */
 public function init()
 {
     $this->comment = new \Doctrine\Common\Collections\ArrayCollection();
     $this->auction = new \Doctrine\Common\Collections\ArrayCollection();
     parent::init();
 }
Exemplo n.º 26
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 27
0
 /**
  * Get id
  *
  * @return integer $id
  */
 public function __construct()
 {
     parent::__construct();
     $this->restaurants = new ArrayCollection();
 }
Exemplo n.º 28
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->phones = new ArrayCollection();
     $this->computers = new ArrayCollection();
 }
Exemplo n.º 29
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->groups = new \Doctrine\Common\Collections\ArrayCollection();
 }
Exemplo n.º 30
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->watchlist = new ArrayCollection();
 }