И есть связь:
Код: Выделить всё
public function getChildren() {
return $this->hasMany(Child::class, ['id' => 'children_ids']);
}
Но отказывается, как только нужно сделать ->joinWith('children'):
Код: Выделить всё
SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: integer[] = integer
LINE 1: ...id" LEFT JOIN "children" ON "fathers"."children_ids" = "children...