I have a CakePHP model that uses the TranslateBehavior for i18n. In most contexts it works fine, however when I try to retrieve data from it in a CakePHP shell the result is always an empty array. So this:
$this->MyModel->find('all')
returns lots of records in a controller, but nothing in a shell. I have tried both adding the model to the shell's $uses array, and also by doing $this->MyModel = ClassaRegistry::init('MyModel'). I haven't found anything in the docs that suggests this shouldn't work, and Googling has not revealed anyone else with this problem (I also asked in the CakePHP IRC), but I'm not sure how to debug.