public function scopes() { return ['published' => ['condition' => 't.status = :status', 'params' => [':status' => self::STATUS_ACTIVE]], 'public' => ['condition' => 'type = :type', 'params' => [':type' => self::TYPE_PUBLIC]]]; }