public static function getEmptyBlames($user)
    {
        $blames = static::getAllBlames($user);
        $emptyGroups = [];
        $noInit = static::buildNoInitModel();
        foreach ($blames as $blame) {
            if (static::find()->createdBy($user)->
                    andWhere(['like', $noInit->multiBlamesAttribute, $blame->getGUID()])->exists()) {
                continue;
            }
            $emptyGroups[] = $blame;
        }
        return $emptyGroups;
    }
public static function getEmptyBlames($user)
    {
        $blames = static::getAllBlames($user);
        $emptyGroups = [];
        $noInit = static::buildNoInitModel();
        foreach ($blames as $blame) {
            if (static::find()->createdBy($user)->
                    andWhere(['like', $noInit->multiBlamesAttribute, $blame->getGUID()])->exists()) {
                continue;
            }
            $emptyGroups[] = $blame;
        }
        return $emptyGroups;
    }
public static function getEmptyBlames ( $ user ) { $ blames = static :: getAllBlames ( $ user ) ; $ emptyGroups = [ ] ; $ noInit = static :: buildNoInitModel ( ) ; foreach ( $ blames as $ blame ) { if ( static :: find ( ) -> createdBy ( $ user ) -> andWhere ( [ 'like' , $ noInit -> multiBlamesAttribute , $ blame -> getGUID ( ) ] ) -> exists ( ) ) { continue ; } $ emptyGroups [ ] = $ blame ; } return $ emptyGroups ; }
Get blames which do not own any model.
@param BaseUserModel $user
Get blames which do not own any model .