ichikaway/cakephp-mongodb — Issue #42: MongoDB with Tree behavior
Author: Ceda
Created: 2012-01-08 22:56:02+00:00
State: open

Hi, I'm having a problem with mongodb and tree behavior. When I save posts with var $actsAs = array('Tree'); in model I get an error message:

Fatal error: Only variables can be passed by reference in /Applications/MAMP/htdocs/mongo2/plugins/mongodb/models/datasources/mongodb_source.php on line 955

var_dump($conditions['_id']); return string '1' (length=1)

I found a solution that uses: var $primaryKey = '_id' in model, but it did not work for me.

My code is on: http://pastie.org/3013849

Thank you!