$q = $this->createQuery() ->from('Strona s, Strona s1') ->where('s.id_rodzica = s1.id') ->andWhere('s.tytul_slug = ?', $adres[1]) ->andWhere('s1.tytul_slug = ?', $adres[0]);
Dostaję error o następującej treści:
"Strona" with an alias of "s1" in your query does not reference the parent component it is related to.
Szukam w googlu rozwiązania i nic nie mogę znaleźć, to znaczy jest trochę wątków na ten temat ale wszędzie jest mowa o złej relacji między tabelami a ja mam samozłączenie.