예제 #1
0
 public function __construct()
 {
     $this->packages = new ArrayCollection();
     $this->authors = new ArrayCollection();
     $this->createdAt = new \DateTime();
     parent::__construct();
 }
예제 #2
0
파일: User.php 프로젝트: bogdy2p/oviTiut
 public function __construct()
 {
     parent::__construct();
     $this->campaigns = new ArrayCollection();
     $this->tasks = new ArrayCollection();
     $this->files = new ArrayCollection();
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     if (empty($this->roles)) {
         $this->roles[] = 'ROLE_USER';
     }
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->setEnabled(true);
     $this->setLocked(false);
     // your own logic
 }
예제 #5
0
파일: User.php 프로젝트: rjagerman/TuneMaps
 /**
  * Creates a user
  */
 public function __construct()
 {
     parent::__construct();
     $this->lastLocation = new Location();
     $this->lastLocation->setLatitude(0);
     $this->lastLocation->setLongitude(0);
 }
예제 #6
0
 public function __construct()
 {
     parent::__construct();
     $this->isActive = true;
     // may not be needed, see section on salt below
     // $this->salt = md5(uniqid(null, true));
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->created = new \DateTime();
     $this->activated = false;
     $this->enabled = true;
 }
예제 #8
0
파일: User.php 프로젝트: jarmas8611/proyect
 public function __construct()
 {
     parent::__construct();
     // your own logic
     $this->groups = new \Doctrine\Common\Collections\ArrayCollection();
     $this->projects = new \Doctrine\Common\Collections\ArrayCollection();
     $this->tasks = new \Doctrine\Common\Collections\ArrayCollection();
 }
예제 #9
0
 public function __construct()
 {
     parent::__construct();
     // your own logic
     $this->locked = true;
     $this->applications = new ArrayCollection();
     $this->providers = new ArrayCollection();
 }
예제 #10
0
 public function __construct()
 {
     parent::__construct();
     $this->friendWithMe = new \Doctrine\Common\Collections\ArrayCollection();
     $this->myFriends = new \Doctrine\Common\Collections\ArrayCollection();
     $this->apiKey = substr(str_shuffle('0123456789AZERTYUIOPQSDFGHJKLMWXCVBNazertyuiopqsdfghjklmwxcvbn'), 32);
     $this->roles = array('ROLE_USER');
 }
예제 #11
0
 public function __construct()
 {
     parent::__construct();
     $this->created = new \DateTime();
     $this->lastActivity = new \DateTime();
     $this->image = new \Ben\DoctorsBundle\Entity\image();
     $this->consultations = new \Doctrine\Common\Collections\ArrayCollection();
 }
예제 #12
0
 public function __construct()
 {
     parent::__construct();
     $this->days = 10;
     $this->alertEmail = false;
     $this->alertDays = 1;
     $this->emailVisible = false;
     $this->homepage = 'Aucune';
 }
 public function __construct()
 {
     parent::__construct();
     $this->email = null;
     // note: when saving the user manager will put the email canonical
     // to empty string hence why we removed the unique constraint,
     // to avoid error being thrown when registering a user only with
     // phone number
     $this->emailCanonical = null;
 }
예제 #14
0
 public function __construct()
 {
     parent::__construct();
     // your own logic
     //$this->entidad = new ArrayCollection();
     $this->rols = new ArrayCollection();
     $this->auditDeleted = false;
     $this->userInternoTipo = null;
     $this->auditDateIns = new \DateTime();
     $this->algorithm = 'sha512';
 }
예제 #15
0
 public function __construct()
 {
     parent::__construct();
     /* @var $doctrine \Doctrine\Bundle\DoctrineBundle\Registry */
     $doctrine = \AppKernel::getStaticContainer()->get('doctrine');
     /* @var $em \Doctrine\ORM\EntityManager */
     $em = $doctrine->getManager();
     $this->setEnabled(true);
     $group = $em->getRepository('ApplicationSonataUserBundle:Group')->find(static::GroupId);
     if ($group) {
         $this->addGroup($group);
     }
 }
예제 #16
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
 }
예제 #17
0
 public function __construct()
 {
     parent::__construct();
     $this->deals = new \Doctrine\Common\Collections\ArrayCollection();
     $this->address = new \Doctrine\Common\Collections\ArrayCollection();
 }
예제 #18
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->projects = new \Doctrine\Common\Collections\ArrayCollection();
 }
예제 #19
0
파일: User.php 프로젝트: Alex223124/edela
 public function __construct()
 {
     parent::__construct();
     $this->language = 'ru';
     $this->exp_total = 0;
     $this->exp_bill = 0;
     $this->userAchievements = new ArrayCollection();
     $this->isSubscribed = true;
     $this->paid_sms = 0;
     $this->paid_dayoffs = 0;
     $this->is_online = false;
     $this->bill = 0;
 }
예제 #20
0
파일: User.php 프로젝트: rainlike/personal
 public function __construct()
 {
     parent::__construct();
     $this->setRegistered(new \DateTime());
     $this->setUpdated(new \DateTime());
 }
예제 #21
0
파일: Users.php 프로젝트: kvartiri/kvartiri
 public function __construct()
 {
     parent::__construct();
     //        $this->guest = new \Doctrine\Common\Collections\ArrayCollection();
     //        $this->company = new \Doctrine\Common\Collections\ArrayCollection();
 }
예제 #22
0
파일: User.php 프로젝트: nonoscred/Run4Fun
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->messages = new \Doctrine\Common\Collections\ArrayCollection();
     $this->subscriptions = new \Doctrine\Common\Collections\ArrayCollection();
 }
예제 #23
0
파일: User.php 프로젝트: mjhale/slumlords
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->courses = new \Doctrine\Common\Collections\ArrayCollection();
     $this->group = new \Doctrine\Common\Collections\ArrayCollection();
 }
예제 #24
0
 /**
  * User constructor.
  */
 public function __construct()
 {
     // Construct parent
     parent::__construct();
     // Set communications as an array
     $this->viewedCommunications = new ArrayCollection();
     // Set default user role
     if (empty($this->roles)) {
         $this->roles = Globals::getDefaultRoles();
     }
     // Set dafault user language
     if (empty($this->language)) {
         $this->language = Globals::getDefaultLanguage();
     }
 }
예제 #25
0
 /**
  * Public constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->events = new ArrayCollection();
     $this->members = new ArrayCollection();
 }
예제 #26
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->customers = new ArrayCollection();
 }
예제 #27
0
 public function __construct()
 {
     parent::__construct();
     // your own logic
 }
예제 #28
0
파일: User.php 프로젝트: erickr/Kompisbyran
 public function __construct()
 {
     $this->fluentSpeakerConnections = new ArrayCollection();
     $this->learnerConnections = new ArrayCollection();
     $this->connectionRequests = new ArrayCollection();
     $this->createdConnections = new ArrayCollection();
     $this->categories = new ArrayCollection();
     $this->from = 'SE';
     $this->createdAt = new \DateTime();
     parent::__construct();
 }
예제 #29
0
파일: User.php 프로젝트: mattvaadi/hris
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->uid = uniqid();
     $this->groups = new ArrayCollection();
     $this->form = new ArrayCollection();
     if (empty($this->datecreated)) {
         $this->datecreated = new \DateTime('now');
     }
     if (empty($this->expiresAt)) {
         $this->expiresAt = new \DateTime('now +1 year');
     }
     if (empty($this->credentialsExpireAt)) {
         $this->credentialsExpireAt = new \DateTime('now +1 year');
     }
 }
예제 #30
0
파일: User.php 프로젝트: amenophis/sympress
 public function __construct()
 {
     parent::__construct();
     $this->posts = new ArrayCollection();
 }