/** * @param string $class * @param ManagerRegistry $registry */ public function __construct($class, ManagerRegistry $registry, SecurityContext $securityContext) { parent::__construct($class, $registry); $this->user = $securityContext->getToken()->getUser(); if ($this->user) { $this->userId = $this->user->getId(); } else { $this->userId = 0; } $this->categories = array(); }
/** * BC Compatibility. * * @deprecated Please use save() from now * * @param UserGeometryInterface $userGeometryInterface */ public function update(UserGeometryInterface $userGeometryInterface) { parent::save($userGeometryInterface); }