/** * Add user group * * @param array $group * @return integer */ public function add(array $group) { $entity = new UserGroupEntity(); $entity->setData($group); $repo = $this->store()->getRepository('user_group'); return $this->store()->add($repo, $entity); }
/** * Get finder * * @return \BX\DB\Filter\SqlBuilder */ public function getFinder() { return static::finder(UserGroupEntity::getClass()); }