private function getRelTableWhere(array &$callArgs, $column, $value) {
        $where = array();

        if (!isset($callArgs[0]) || (isset($callArgs[0]) && !is_array($callArgs[0])) ||
                (isset($callArgs[0]) && is_array($callArgs[0]) && !isset($callArgs[0]['where']))) {
            $where[] = array($column => $value);
        }
        else if ((isset($callArgs[0]) && is_array($callArgs[0]) && isset($callArgs[0]['where']))) {
            if (is_array($callArgs[0]['where'])) {
                foreach ($callArgs[0]['where'] as $row) {
                    if (is_object($row)) {
                        $row->$column = $value;
                    }
                    else if (is_array($row)) {
                        $row[$column] = $value;
                    }
                    else {
                        throw new \Exception('Related Table Call Error: Option where value must be an array of \DBScribe\Rows or array of columns to values');
                    }

                    $where[] = $row;
                }
            }
            else if (is_object($row)) {
                $row->$column = $value;
                $where[] = $row;
            }
            unset($callArgs[0]['where']);
        }

        return $where;
    }
private function getRelTableWhere(array &$callArgs, $column, $value) {
        $where = array();

        if (!isset($callArgs[0]) || (isset($callArgs[0]) && !is_array($callArgs[0])) ||
                (isset($callArgs[0]) && is_array($callArgs[0]) && !isset($callArgs[0]['where']))) {
            $where[] = array($column => $value);
        }
        else if ((isset($callArgs[0]) && is_array($callArgs[0]) && isset($callArgs[0]['where']))) {
            if (is_array($callArgs[0]['where'])) {
                foreach ($callArgs[0]['where'] as $row) {
                    if (is_object($row)) {
                        $row->$column = $value;
                    }
                    else if (is_array($row)) {
                        $row[$column] = $value;
                    }
                    else {
                        throw new \Exception('Related Table Call Error: Option where value must be an array of \DBScribe\Rows or array of columns to values');
                    }

                    $where[] = $row;
                }
            }
            else if (is_object($row)) {
                $row->$column = $value;
                $where[] = $row;
            }
            unset($callArgs[0]['where']);
        }

        return $where;
    }
private function getRelTableWhere ( array & $ callArgs , $ column , $ value ) { $ where = array ( ) ; if ( ! isset ( $ callArgs [ 0 ] ) || ( isset ( $ callArgs [ 0 ] ) && ! is_array ( $ callArgs [ 0 ] ) ) || ( isset ( $ callArgs [ 0 ] ) && is_array ( $ callArgs [ 0 ] ) && ! isset ( $ callArgs [ 0 ] [ 'where' ] ) ) ) { $ where [ ] = array ( $ column => $ value ) ; } else if ( ( isset ( $ callArgs [ 0 ] ) && is_array ( $ callArgs [ 0 ] ) && isset ( $ callArgs [ 0 ] [ 'where' ] ) ) ) { if ( is_array ( $ callArgs [ 0 ] [ 'where' ] ) ) { foreach ( $ callArgs [ 0 ] [ 'where' ] as $ row ) { if ( is_object ( $ row ) ) { $ row -> $ column = $ value ; } else if ( is_array ( $ row ) ) { $ row [ $ column ] = $ value ; } else { throw new \ Exception ( 'Related Table Call Error: Option where value must be an array of \DBScribe\Rows or array of columns to values' ) ; } $ where [ ] = $ row ; } } else if ( is_object ( $ row ) ) { $ row -> $ column = $ value ; $ where [ ] = $ row ; } unset ( $ callArgs [ 0 ] [ 'where' ] ) ; } return $ where ; }
Fetches the where values for the related table from the call arguments

@param array $callArgs
@param string $column
@param mixed $value
@return array
@throws \Exception
Fetches the where values for the related table from the call arguments