This commit is contained in:
Yuri Kuznetsov
2024-11-15 13:08:10 +02:00
parent d8b3b5361a
commit 4eb375c1cf
22 changed files with 95 additions and 57 deletions
@@ -159,7 +159,7 @@ class RDBRelationSelectBuilder
{
$transformedWhere = [];
$middleName = lcfirst($this->getRelationParam('relationName'));
$middleName = lcfirst($this->getRelationParam(RelationParam::RELATION_NAME));
foreach ($where as $key => $value) {
$transformedKey = $key;
@@ -447,7 +447,7 @@ class RDBRelationSelectBuilder
}
if (!$this->middleTableAlias) {
$middleName = $this->getRelationParam('relationName');
$middleName = $this->getRelationParam(RelationParam::RELATION_NAME);
if (!$middleName) {
throw new RuntimeException("No relation name.");