MySQL DBに2つのテーブルがあり、doctrine1.2とsymfony1.4.4を使用しています。
InstalledbaseとSpare
Installedbase:
ib_id
app_id
location
と
Spare:
spare_id
app_id
amount
次に、テーブルに参加して、スペアにあるアプリの数を示します。
例えば
$q = self::createQuery("l")
->select('i.*, s.*')
->from('InstalledBase i, Spare s')
->execute();
return $q;
Doctrineはapp_idフィールドのテーブル間に関係があることを知っていますが、エラーが発生します
500 | Internal Server Error | Doctrine_Hydrator_Exception
"Spare" with an alias of "s" in your query does not reference the parent component it is related to.
yaml: http: //pastey.net/137237 私はこれを理解できません、誰かが教義が不平を言っていることを知っていますか?