mandango/mandango — Issue #15: GridFS Problem
Author: marcoberri
Created: 2011-11-25 10:42:24+00:00
State: open

HI,

for example i see http://mandango.org/doc/mandango/grid-fs.html

my object is :

array(
'CommonsFile' => array(
'isFile' => true,
'collection' => 'Commons_File',
'fields' => array(
'name' => 'string',
),
),
);

php code:

$file = $mandango->create('CommonsFile');
$file->setFile("/usr/local/data/sample/pdf2.pdf");
$file->setName("New File");
$file->save();

log:

[error] [client 192.168.0.200] PHP Fatal error: Call to undefined
method CommonsFile::setFile()

tnx