Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed May 20, 2024
1 parent 861c1e8 commit cdd6aa4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tests/Driver/Oracle/Stubs/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
* @property string $email
* @property string $address
* @property int $status
*
* @method CustomerQuery findBySql($sql, $params = []) static.
*/
final class Customer extends \Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\Customer
{
public function getOrders(): ActiveQuery
public function getOrdersQuery(): ActiveQuery
{
return $this->hasMany(Order::class, ['customer_id' => 'id'])->orderBy('{{customer}}.[[id]]');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Driver/Oracle/Stubs/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
final class Order extends \Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\Order
{
public function getCustomer(): ActiveQuery
public function getCustomerQuery(): ActiveQuery
{
return $this->hasOne(Customer::class, ['id' => 'customer_id']);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Driver/Pgsql/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function testBooleanValues(): void
$this->checkFixture($this->db, 'bool_values');

$command = $this->db->createCommand();
$command->batchInsert('bool_values', ['bool_col'], [[true], [false]])->execute();
$command->insertBatch('bool_values', [[true], [false]], ['bool_col'])->execute();
$boolARQuery = new ActiveQuery(BoolAR::class, $this->db);

$this->assertTrue($boolARQuery->where(['bool_col' => true])->onePopulate()->bool_col);
Expand Down

0 comments on commit cdd6aa4

Please sign in to comment.