protected function constrainByWildcard($query, $strict = false) { if (!$strict) { return; } $query->where("{$this->table}.entity_type", '*'); }