私はカスタムデータソースを持っています、それを呼びましょうSQSDatasource。一般的に、、、find()さらにsave()は。に対しては正常に機能していdelete()ます。
class SQSDatasource extends DataSource {
    public function delete(Model $Model, $conditions = null) {
        // Deliberate break point to ensure that this function is being called
        print_r($conditions);
        exit();
        // I have my proper delete logic here, which works fine usually
    }
}
モデル、Jobそれはを使用すると言いますSQSDatasource。に特別なロジックはありませんJob。
しかし、私は奇妙な異常に遭遇しています。
class TestShell extends AppShell {
    public $uses = array('Job');
    public function main() {
        // This works fine.
        $job = $this->Job->find('first');
        // The break point never gets called
        $this->Job->delete('TEST!');
        // This gets called
        $this->out('This gets called.');
    }
}
$this->Job->find()ただし、呼び出す前に削除すると$this->Job->delete()、完全に正常に機能します。delete()呼ばれるだろう。
誰かがこの異常について何か手がかりを持っていますか?