public function select($model = array(), $returnType = Table::RETURN_MODEL) {
        $this->insertJoins();
        if (!is_array($model)) {
            $model = array($model);
        }

        $this->isSelect = true;
        return parent::select($model, $returnType);
    }