public function createResultSetMappingBuilder($alias = null)
    {
        if (!$alias) {
            $alias = $this->getEntityAlias();
        }

        $resultSet = new ResultSetMappingBuilder(
            $this->getEntityManager(), ResultSetMappingBuilder::COLUMN_RENAMING_INCREMENT
        );
        $resultSet->addRootEntityFromClassMetadata($this->getClassName(), $alias);

        return $resultSet;
    }
public function createResultSetMappingBuilder($alias = null)
    {
        if (!$alias) {
            $alias = $this->getEntityAlias();
        }

        $resultSet = new ResultSetMappingBuilder(
            $this->getEntityManager(), ResultSetMappingBuilder::COLUMN_RENAMING_INCREMENT
        );
        $resultSet->addRootEntityFromClassMetadata($this->getClassName(), $alias);

        return $resultSet;
    }
public function createResultSetMappingBuilder ( $ alias = null ) { if ( ! $ alias ) { $ alias = $ this -> getEntityAlias ( ) ; } $ resultSet = new ResultSetMappingBuilder ( $ this -> getEntityManager ( ) , ResultSetMappingBuilder :: COLUMN_RENAMING_INCREMENT ) ; $ resultSet -> addRootEntityFromClassMetadata ( $ this -> getClassName ( ) , $ alias ) ; return $ resultSet ; }
Creates a new result set mapping builder for this entity. The column naming strategy is "INCREMENT".

@param string $alias

@return ResultSetMappingBuilder
@throws \ReflectionException
Creates a new result set mapping builder for this entity . The column naming strategy is INCREMENT .