Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * Get finder
  *
  * @return \BX\DB\Filter\SqlBuilder
  */
 public function getFinder()
 {
     return static::finder(UserGroupEntity::getClass());
 }