|
|
@@ -1664,7 +1664,7 @@ class QueryTest extends TestCase
|
|
|
->select(['id'])
|
|
|
->from('comments')
|
|
|
->where(function ($exp) {
|
|
|
- $and = $exp->and_(['id' => 2, 'id >' => 1]);
|
|
|
+ $and = $exp->and(['id' => 2, 'id >' => 1]);
|
|
|
|
|
|
return $exp->add($and);
|
|
|
})
|
|
|
@@ -1678,7 +1678,7 @@ class QueryTest extends TestCase
|
|
|
->select(['id'])
|
|
|
->from('comments')
|
|
|
->where(function ($exp) {
|
|
|
- $and = $exp->and_(['id' => 2, 'id <' => 2]);
|
|
|
+ $and = $exp->and(['id' => 2, 'id <' => 2]);
|
|
|
|
|
|
return $exp->add($and);
|
|
|
})
|
|
|
@@ -1691,7 +1691,7 @@ class QueryTest extends TestCase
|
|
|
->select(['id'])
|
|
|
->from('comments')
|
|
|
->where(function ($exp) {
|
|
|
- $and = $exp->and_(function ($and) {
|
|
|
+ $and = $exp->and(function ($and) {
|
|
|
return $and->eq('id', 1)->gt('id', 0);
|
|
|
});
|
|
|
|
|
|
@@ -1707,8 +1707,8 @@ class QueryTest extends TestCase
|
|
|
->select(['id'])
|
|
|
->from('comments')
|
|
|
->where(function ($exp) {
|
|
|
- $or = $exp->or_(['id' => 1]);
|
|
|
- $and = $exp->and_(['id >' => 2, 'id <' => 4]);
|
|
|
+ $or = $exp->or(['id' => 1]);
|
|
|
+ $and = $exp->and(['id >' => 2, 'id <' => 4]);
|
|
|
|
|
|
return $or->add($and);
|
|
|
})
|
|
|
@@ -1723,7 +1723,7 @@ class QueryTest extends TestCase
|
|
|
->select(['id'])
|
|
|
->from('comments')
|
|
|
->where(function ($exp) {
|
|
|
- $or = $exp->or_(function ($or) {
|
|
|
+ $or = $exp->or(function ($or) {
|
|
|
return $or->eq('id', 1)->eq('id', 2);
|
|
|
});
|
|
|
|
|
|
@@ -1751,7 +1751,7 @@ class QueryTest extends TestCase
|
|
|
->from('comments')
|
|
|
->where(function ($exp) {
|
|
|
return $exp->not(
|
|
|
- $exp->and_(['id' => 2, 'created' => new \DateTime('2007-03-18 10:47:23')], ['created' => 'datetime'])
|
|
|
+ $exp->and(['id' => 2, 'created' => new \DateTime('2007-03-18 10:47:23')], ['created' => 'datetime'])
|
|
|
);
|
|
|
})
|
|
|
->execute();
|
|
|
@@ -1766,7 +1766,7 @@ class QueryTest extends TestCase
|
|
|
->from('comments')
|
|
|
->where(function ($exp) {
|
|
|
return $exp->not(
|
|
|
- $exp->and_(['id' => 2, 'created' => new \DateTime('2012-12-21 12:00')], ['created' => 'datetime'])
|
|
|
+ $exp->and(['id' => 2, 'created' => new \DateTime('2012-12-21 12:00')], ['created' => 'datetime'])
|
|
|
);
|
|
|
})
|
|
|
->execute();
|