src/main/php/DataDo/Data/Repository.php
private function addMethod($method)
    {
        $tokens = $this->methodParser->parse($method);
        $query = $this->queryBuilder->build($tokens, $this->tableName, $this->namingContention, $this->entityClass);
        if ($query->getResultMode() <= QueryBuilderResult::RESULT_SELECT_MULTIPLE) {
            $this->addSelectionMethod($query, $method);
        } else {
            $this->addIntResultMethod($query, $method);
        }

    }
private function addMethod($method)
    {
        $tokens = $this->methodParser->parse($method);
        $query = $this->queryBuilder->build($tokens, $this->tableName, $this->namingContention, $this->entityClass);
        if ($query->getResultMode() <= QueryBuilderResult::RESULT_SELECT_MULTIPLE) {
            $this->addSelectionMethod($query, $method);
        } else {
            $this->addIntResultMethod($query, $method);
        }

    }
private function addMethod ( $ method ) { $ tokens = $ this -> methodParser -> parse ( $ method ) ; $ query = $ this -> queryBuilder -> build ( $ tokens , $ this -> tableName , $ this -> namingContention , $ this -> entityClass ) ; if ( $ query -> getResultMode ( ) <= QueryBuilderResult :: RESULT_SELECT_MULTIPLE ) { $ this -> addSelectionMethod ( $ query , $ method ) ; } else { $ this -> addIntResultMethod ( $ query , $ method ) ; } }
Parse a dsl method and add it to this repository.
@param $method string the method name
@throws DslSyntaxException
Parse a dsl method and add it to this repository .