Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DB::table('test')
- ->where('id', 1)
- ->orWhere(function($query) {
- $query->where('a', '>', 5)
- ->where('a', '<=', 10);
- })
- ->delete();
- Table Object
- (
- [m_impl:protected] => QueryImpl Object
- (
- [m_tableSql:QueryImpl:private] => `test`
- [m_whereClauseSql:QueryImpl:private] =>
- [m_offsetSql:QueryImpl:private] =>
- [m_limitSql:QueryImpl:private] =>
- [m_groupByClauseSql:QueryImpl:private] =>
- [m_orderByClauseSql:QueryImpl:private] =>
- [m_havingClauseSql:QueryImpl:private] =>
- [m_variables:QueryImpl:private] => Array
- (
- )
- )
- )
- Unknown2 Object
- (
- [m_impl:protected] => QueryImpl Object
- (
- [m_tableSql:QueryImpl:private] => `test`
- [m_whereClauseSql:QueryImpl:private] => `id` = ?
- [m_offsetSql:QueryImpl:private] =>
- [m_limitSql:QueryImpl:private] =>
- [m_groupByClauseSql:QueryImpl:private] =>
- [m_orderByClauseSql:QueryImpl:private] =>
- [m_havingClauseSql:QueryImpl:private] =>
- [m_variables:QueryImpl:private] => Array
- (
- [0] => 1
- )
- )
- )
- Unknown2 Object
- (
- [m_impl:protected] => QueryImpl Object
- (
- [m_tableSql:QueryImpl:private] => `test`
- [m_whereClauseSql:QueryImpl:private] => `id` = ? OR (`a` > ? AND `a` <= ?)
- [m_offsetSql:QueryImpl:private] =>
- [m_limitSql:QueryImpl:private] =>
- [m_groupByClauseSql:QueryImpl:private] =>
- [m_orderByClauseSql:QueryImpl:private] =>
- [m_havingClauseSql:QueryImpl:private] =>
- [m_variables:QueryImpl:private] => Array
- (
- [0] => 1
- [1] => 5
- [2] => 10
- )
- )
- )
- string(59) "DELETE FROM `test` WHERE `id` = ? OR (`a` > ? AND `a` <= ?)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement