本文整理匯總了PHP中FOS\UserBundle\Model\User::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP User::__construct方法的具體用法?PHP User::__construct怎麽用?PHP User::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FOS\UserBundle\Model\User
的用法示例。
在下文中一共展示了User::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->{$commentaires} = new ArrayCollection();
$this->{$commandesTraites} = new ArrayCollection();
$this->{$commandesEnvoyes} = new ArrayCollection();
}
示例2: __construct
public function __construct()
{
parent::__construct();
// your own logic
$this->usuario_adopciones = new ArrayCollection();
$this->usuario_archivos = new ArrayCollection();
}
示例3: __construct
public function __construct()
{
parent::__construct();
// your own logic
$this->commandes = new \Doctrine\Common\Collections\ArrayCollection();
$this->adresses = new \Doctrine\Common\Collections\ArrayCollection();
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->roles = array('ROLE_USER');
$this->registrationRequests = new ArrayCollection();
$this->createdAt = new \DateTime('now');
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->postsCreated = new ArrayCollection();
$this->tagsCreated = new ArrayCollection();
// your own logic
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->address = new \Doctrine\Common\Collections\ArrayCollection();
$this->orders = new \Doctrine\Common\Collections\ArrayCollection();
$this->userImg = new \Doctrine\Common\Collections\ArrayCollection();
}
示例7: __construct
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$this->articles = new ArrayCollection();
$this->ratings = new ArrayCollection();
$this->answers = new ArrayCollection();
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->forumQuestions = new ArrayCollection();
$this->forumAnswers = new ArrayCollection();
$this->lots = new ArrayCollection();
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->groups = new \Doctrine\Common\Collections\ArrayCollection();
$this->courses = new \Doctrine\Common\Collections\ArrayCollection();
$this->payments = new \Doctrine\Common\Collections\ArrayCollection();
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->files = new ArrayCollection();
$this->directories = new ArrayCollection();
$this->playlists = new ArrayCollection();
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->addRole('ROLE_USER');
$this->autoPassword = false;
$this->autoUsername = false;
}
示例12: __construct
public function __construct()
{
$this->artigos = new ArrayCollection();
$this->mensagens = new ArrayCollection();
$this->topicos = new ArrayCollection();
parent::__construct();
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->products = new ArrayCollection();
$this->orders = new ArrayCollection();
$this->address = new ArrayCollection();
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->requests = new ArrayCollection();
$this->experience = 0;
$this->newOauth = false;
}
示例15: __construct
/**
* User constructor.
*/
public function __construct()
{
parent::__construct();
$this->isActive = true;
// may not be needed, see section on salt below
// $this->salt = md5(uniqid(null, true));
}