I'm trying to do this:
$this->Group->find('list');
and my SQL is coming out like this:
SELECT Group.id, Group.name, GroupPermission.* FROM groups AS Group WHERE 1 = 1
In permisssionable/models/behaviors/permissionable.php, when I debugged the $Model before and after this line of the beforeFind() function:
$this->_bind($Model, array( ... ));
the $Model did not and then did have a 'hasOne' binding to GroupPermission however for some reason it isn't being applied to the ->find('list') query.
I tried to do a $this->Group->find('all'); and that did work as expected.
I'm calling $this->Group from my users_controller where I have:
var $uses = array('User', 'Group');
I have User HABTM Group and Group HABTM User defined in the appropriate model files.