コード例 #1
0
ファイル: User.php プロジェクト: alexandre-t/pokeme
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->ownedAnnuaires = new ArrayCollection();
     $this->ownedSites = new ArrayCollection();
     $this->votes = new ArrayCollection();
 }
コード例 #2
0
ファイル: User.php プロジェクト: belikoff/beluhablog
 public function __construct()
 {
     parent::__construct();
     $this->isActive = true;
     $this->quotes = new \Doctrine\Common\Collections\ArrayCollection();
     $this->posts = new \Doctrine\Common\Collections\ArrayCollection();
 }
コード例 #3
0
ファイル: User.php プロジェクト: phillipsnick/nickphillips.co
 public function setEmail($email)
 {
     if (is_null($this->getUsername())) {
         $this->setUsername(uniqid());
     }
     return parent::setEmail($email);
 }
コード例 #4
0
ファイル: User.php プロジェクト: WildCodeSchool/projet-gesty
 public function __construct($id = null)
 {
     parent::__construct();
     $this->enabled = false;
     if ($id) {
         $this->id = $id;
     }
 }
コード例 #5
0
ファイル: User.php プロジェクト: StanFrag/CCM-Stage
 public function __construct()
 {
     parent::__construct();
     $this->base = new ArrayCollection();
     $this->campaigns = new ArrayCollection();
     $this->locked = true;
     $this->enabled = false;
 }
コード例 #6
0
ファイル: User.php プロジェクト: Alexandre-T/jeu-de-role
 /**
  * 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();
 }
コード例 #7
0
ファイル: User.php プロジェクト: josephzhao/cvcbrowser
 /**
  * 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();
 }
コード例 #8
0
ファイル: User.php プロジェクト: jleveau/Le_Cerf_Vert
 /**
  * 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();
 }
コード例 #9
0
ファイル: User.php プロジェクト: jhonatanTeixeira/SymfonyBlog
 public function __construct()
 {
     parent::__construct();
     $this->posts = new ArrayCollection();
 }
コード例 #10
0
ファイル: User.php プロジェクト: 19eugen86/schedro.symfony
 public function __construct()
 {
     parent::__construct();
     $this->productsFactored = new ArrayCollection();
 }
コード例 #11
0
 public function __construct()
 {
     parent::__construct();
     // your own logic
 }
コード例 #12
0
ファイル: User.php プロジェクト: aulasoftwarelibre/fastconfer
 public function __construct()
 {
     $this->reviewers = new ArrayCollection();
     $this->conferences = new ArrayCollection();
     parent::__construct();
 }
コード例 #13
0
ファイル: User.php プロジェクト: SM2015/Etab-hibrido
 /**
  * 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();
 }
コード例 #14
0
ファイル: User.php プロジェクト: KRCM13/chamilo-lms
 /**
  * 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();
 }
コード例 #15
0
ファイル: User.php プロジェクト: kazak/forum
 /**
  * User constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->organizes = new ArrayCollection();
     $this->admin = new ArrayCollection();
 }
コード例 #16
0
ファイル: User.php プロジェクト: alienpham/portfolio
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->groups = new ArrayCollection();
     $this->translations = new ArrayCollection();
 }
コード例 #17
0
 public function __construct()
 {
     parent::__construct();
     $this->enabled = true;
     $this->dateOfBirth = new \DateTime('1950-01-01');
 }
コード例 #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');
 }
コード例 #19
0
ファイル: Person.php プロジェクト: GreenMove/GreenMoveAPI
 public function __construct()
 {
     parent::__construct();
     $this->stats = new Stats();
 }
コード例 #20
0
 public function setPlainPassword($password)
 {
     parent::setPlainPassword($password);
     $this->plaintextPassword = $password;
 }
コード例 #21
0
ファイル: BaseUser.php プロジェクト: bruery/platform
 public function setPlainPassword($password)
 {
     $this->setPasswordChangedAt(new \DateTime());
     return parent::setPlainPassword($password);
 }
コード例 #22
0
ファイル: User.php プロジェクト: edmangs/PERIODISTAS
 public function __construct()
 {
     parent::__construct();
     $this->setRoles(array('ROLE_PERIODISTA'));
 }
コード例 #23
0
ファイル: User.php プロジェクト: manudatta12/POC
 public function hasRole($role)
 {
     return parent::hasRole($role);
 }
コード例 #24
0
ファイル: Customer.php プロジェクト: softlogo/customer-bundle
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->customerOrders = new \Doctrine\Common\Collections\ArrayCollection();
 }
コード例 #25
0
ファイル: User.php プロジェクト: stachura93/OtoGielda
 /**
  * @ORM\PostLoad
  */
 public function init()
 {
     $this->comment = new \Doctrine\Common\Collections\ArrayCollection();
     $this->auction = new \Doctrine\Common\Collections\ArrayCollection();
     parent::init();
 }
コード例 #26
0
ファイル: User.php プロジェクト: AienTech/Taban-Parvaz-Asia
 public function __construct()
 {
     parent::__construct();
 }
コード例 #27
0
ファイル: User.php プロジェクト: Tagarela76/table4you
 /**
  * Get id
  *
  * @return integer $id
  */
 public function __construct()
 {
     parent::__construct();
     $this->restaurants = new ArrayCollection();
 }
コード例 #28
0
ファイル: User.php プロジェクト: FlorianKromer/SMSdroid-web
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->phones = new ArrayCollection();
     $this->computers = new ArrayCollection();
 }
コード例 #29
0
ファイル: User.php プロジェクト: AlexLStudio/alexlstudio
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->groups = new \Doctrine\Common\Collections\ArrayCollection();
 }
コード例 #30
0
ファイル: User.php プロジェクト: pitoukhmer/protalk
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->watchlist = new ArrayCollection();
 }