Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
なぜこれが機能しないのですか?
$allRecords = RecordsQuery::create() ->where('SUBSTR(Records.paymentTime, 1, 7) = ?', '2013-02') ->findOne(); // var_dump($allRecords);
null を返すだけです。これを SQL コマンドとして使用すると、正しいレコードが返されます。
Records.paymentTime は日付フィールドです。
よろしくお願いします。