src/Spiritix/LadaCache/Reflector.php
public function getRows()
    {
        $rows = [];
        $wheres = $this->queryBuilder->wheres ?: [];

        foreach ($wheres as $where) {

            // Skip unsupported clauses
            if (!isset($where['column'])) {
                continue;
            }

            // If it doesn't contain the table name assume it's the "FROM" table
            if (strpos($where['column'], '.') === false) {
                $where['column'] = implode('.', [$this->queryBuilder->from, $where['column']]);
            }

            list($table, $column) = $this->splitTableAndColumn($where['column']);

            // Make sure that the where clause applies for the primary key column
            if ($column !== self::PRIMARY_KEY_COLUMN) {
                continue;
            }

            // Initialize a set for the current table
            if (!isset($rows[$table])) {
                $rows[$table] = [];
            }

            // Add the rows to the current table set
            if ($where['type'] === 'Basic') {
                if ($where['operator'] === '=' && is_numeric($where['value'])) {
                    $rows[$table][] = $where['value'];
                }
            }
            else if ($where['type'] === 'In') {
                $rows[$table] += $where['values'];
            }
        }

        return $rows;
    }
public function getRows()
    {
        $rows = [];
        $wheres = $this->queryBuilder->wheres ?: [];

        foreach ($wheres as $where) {

            // Skip unsupported clauses
            if (!isset($where['column'])) {
                continue;
            }

            // If it doesn't contain the table name assume it's the "FROM" table
            if (strpos($where['column'], '.') === false) {
                $where['column'] = implode('.', [$this->queryBuilder->from, $where['column']]);
            }

            list($table, $column) = $this->splitTableAndColumn($where['column']);

            // Make sure that the where clause applies for the primary key column
            if ($column !== self::PRIMARY_KEY_COLUMN) {
                continue;
            }

            // Initialize a set for the current table
            if (!isset($rows[$table])) {
                $rows[$table] = [];
            }

            // Add the rows to the current table set
            if ($where['type'] === 'Basic') {
                if ($where['operator'] === '=' && is_numeric($where['value'])) {
                    $rows[$table][] = $where['value'];
                }
            }
            else if ($where['type'] === 'In') {
                $rows[$table] += $where['values'];
            }
        }

        return $rows;
    }
public function getRows ( ) { $ rows = [ ] ; $ wheres = $ this -> queryBuilder -> wheres ? : [ ] ; foreach ( $ wheres as $ where ) { // Skip unsupported clauses if ( ! isset ( $ where [ 'column' ] ) ) { continue ; } // If it doesn't contain the table name assume it's the "FROM" table if ( strpos ( $ where [ 'column' ] , '.' ) === false ) { $ where [ 'column' ] = implode ( '.' , [ $ this -> queryBuilder -> from , $ where [ 'column' ] ] ) ; } list ( $ table , $ column ) = $ this -> splitTableAndColumn ( $ where [ 'column' ] ) ; // Make sure that the where clause applies for the primary key column if ( $ column !== self :: PRIMARY_KEY_COLUMN ) { continue ; } // Initialize a set for the current table if ( ! isset ( $ rows [ $ table ] ) ) { $ rows [ $ table ] = [ ] ; } // Add the rows to the current table set if ( $ where [ 'type' ] === 'Basic' ) { if ( $ where [ 'operator' ] === '=' && is_numeric ( $ where [ 'value' ] ) ) { $ rows [ $ table ] [ ] = $ where [ 'value' ] ; } } else if ( $ where [ 'type' ] === 'In' ) { $ rows [ $ table ] += $ where [ 'values' ] ; } } return $ rows ; }
Returns all affected rows as a multidimensional array, split up by table.

@return array
Returns all affected rows as a multidimensional array split up by table .