Beispiel #1
0
 /**
  * Returns array of ids of propertyGroups for user model
  * @return array
  * @throws \Exception
  */
 private function getPropertyIdsForUsers()
 {
     return PropertyGroup::getDb()->cache(function ($db) {
         return PropertyGroup::find()->select('id')->where(['object_id' => $this->getObject()->id])->asArray()->column($db);
     }, 86400, new TagDependency(['tags' => ActiveRecordHelper::getCommonTag(PropertyGroup::className())]));
 }