public function execute()
    {
        $select_sql = $this->getSelectSql();

        if ($this->loadByTypeField()) {
            $return_by = ConnectionInterface::RETURN_OBJECT_BY_FIELD;
            $return_by_value = 'type';
        } else {
            $return_by = ConnectionInterface::RETURN_OBJECT_BY_CLASS;
            $return_by_value = $this->type;
        }

        if ($this->hasContainer()) {
            return $this->connection->advancedExecute($select_sql, null, ConnectionInterface::LOAD_ALL_ROWS, $return_by, $return_by_value, [&$this->connection, &$this->pool, &$this->log], $this->getContainer());
        } else {
            return $this->connection->advancedExecute($select_sql, null, ConnectionInterface::LOAD_ALL_ROWS, $return_by, $return_by_value, [&$this->connection, &$this->pool, &$this->log]);
        }
    }
public function execute()
    {
        $select_sql = $this->getSelectSql();

        if ($this->loadByTypeField()) {
            $return_by = ConnectionInterface::RETURN_OBJECT_BY_FIELD;
            $return_by_value = 'type';
        } else {
            $return_by = ConnectionInterface::RETURN_OBJECT_BY_CLASS;
            $return_by_value = $this->type;
        }

        if ($this->hasContainer()) {
            return $this->connection->advancedExecute($select_sql, null, ConnectionInterface::LOAD_ALL_ROWS, $return_by, $return_by_value, [&$this->connection, &$this->pool, &$this->log], $this->getContainer());
        } else {
            return $this->connection->advancedExecute($select_sql, null, ConnectionInterface::LOAD_ALL_ROWS, $return_by, $return_by_value, [&$this->connection, &$this->pool, &$this->log]);
        }
    }
public function execute ( ) { $ select_sql = $ this -> getSelectSql ( ) ; if ( $ this -> loadByTypeField ( ) ) { $ return_by = ConnectionInterface :: RETURN_OBJECT_BY_FIELD ; $ return_by_value = 'type' ; } else { $ return_by = ConnectionInterface :: RETURN_OBJECT_BY_CLASS ; $ return_by_value = $ this -> type ; } if ( $ this -> hasContainer ( ) ) { return $ this -> connection -> advancedExecute ( $ select_sql , null , ConnectionInterface :: LOAD_ALL_ROWS , $ return_by , $ return_by_value , [ & $ this -> connection , & $ this -> pool , & $ this -> log ] , $ this -> getContainer ( ) ) ; } else { return $ this -> connection -> advancedExecute ( $ select_sql , null , ConnectionInterface :: LOAD_ALL_ROWS , $ return_by , $ return_by_value , [ & $ this -> connection , & $ this -> pool , & $ this -> log ] ) ; } }
Prepare SQL and load one or more records.

@return mixed
Prepare SQL and load one or more records .