シンプルPropel reusing queryは私のコードはPropelのウェブサイトの例に似ていますが、ここでは機能しません。 これはバグか悪いですか?Propelのクエリのバグや悪い点を再利用していますか?
$q = MashupSettingQuery::create()->filterByMashup($this);
var_dump($q->count(), $q->findOneByKey('redirect_uri'), $q->count());
出力は次のとおりです。
int 5
object(MashupSetting)[28]
protected 'startCopy' => boolean false
protected 'id' => int 9
protected 'key' => string 'redirect_uri' (length=12)
int 1
でもMashupSettingQuery::create()->filterByMashup($this)->keepQuery(true)
を使用しても問題が解決しなかった
1. 5
count()
最初に戻っているため、その後resusingが動作していない、です。
文書によると、うまくいくはずです。そうでなければ、バグが見つかりました。 –