orm isRelatedById method

This commit is contained in:
Yuri Kuznetsov
2023-11-08 11:22:38 +02:00
parent 930f706dd3
commit c95be2f54e
10 changed files with 132 additions and 72 deletions
+3 -3
View File
@@ -525,8 +525,8 @@ class MapperTest extends \PHPUnit\Framework\TestCase
$query = SelectBuilder::create()
->from('Note', 'note')
->where([
'parentId' => '1',
'parentType' => 'Post'
['parentId' => '1'],
['parentType' => 'Post'],
])
->build();
@@ -560,7 +560,7 @@ class MapperTest extends \PHPUnit\Framework\TestCase
"post.created_by_id AS `createdById`, post.deleted AS `deleted` ".
"FROM `post` AS `post` ".
"LEFT JOIN `user` AS `createdBy` ON post.created_by_id = createdBy.id " .
"WHERE post.id = '1' AND post.deleted = 0 ".
"WHERE (post.id = '1') AND post.deleted = 0 ".
"LIMIT 0, 1";
$return = [
[