src/Task/Doctrine/loadOrmTasks.php
public function ormRunDql(
        $dql,
        $opt = [
            'hydrate'      => 'object',
            'first-result' => null,
            'max-result'   => null,
            'depth'        => 7,
        ]
    ) {
        $validOpts = [
            'hydrate',
            'first-result',
            'max-result',
            'depth',
        ];
        $command = new Command\RunDqlCommand;

        $arg = [
            'dql' => $dql,
        ];

        $this->runDoctrineCommand($command, $opt, $arg);
    }
public function ormRunDql(
        $dql,
        $opt = [
            'hydrate'      => 'object',
            'first-result' => null,
            'max-result'   => null,
            'depth'        => 7,
        ]
    ) {
        $validOpts = [
            'hydrate',
            'first-result',
            'max-result',
            'depth',
        ];
        $command = new Command\RunDqlCommand;

        $arg = [
            'dql' => $dql,
        ];

        $this->runDoctrineCommand($command, $opt, $arg);
    }
public function ormRunDql ( $ dql , $ opt = [ 'hydrate' => 'object' , 'first-result' => null , 'max-result' => null , 'depth' => 7 , ] ) { $ validOpts = [ 'hydrate' , 'first-result' , 'max-result' , 'depth' , ] ; $ command = new Command \ RunDqlCommand ; $ arg = [ 'dql' => $ dql , ] ; $ this -> runDoctrineCommand ( $ command , $ opt , $ arg ) ; }
Executes arbitrary DQL directly from the command line

@param string $dql The DQL to execute
@param array  $opt

@option $hydrate      Hydration mode of result set. Should be either: object, array, scalar or single-scalar
@option $first-result The first result in the result set
@option $max-result   The maximum number of results in the result set
@option $depth        Dumping depth of Entity graph
Executes arbitrary DQL directly from the command line