Open CrazyClicker opened 11 years ago
Hello there!
I just have a small question. I'm created a document and one of it's properties have a requirement such as:
'products' => 'DocumentSet', products.$' => array('Document:Model_Product'),
so as I understood from reading Shanty_Mongo_DocumentSet sources I simply cannot pass values to product when instantinating it like this:
$this->products->new(array('foo' => 'bar'));
So there is any reason for such behavior or it just not implemented yet?
Hi,
You should be able to initialise a document set like that. It just hasn't been implemented. I'd welcome a pull request with tests.
Cheers, Coen
Hello there!
I just have a small question. I'm created a document and one of it's properties have a requirement such as:
'products' => 'DocumentSet', products.$' => array('Document:Model_Product'),
so as I understood from reading Shanty_Mongo_DocumentSet sources I simply cannot pass values to product when instantinating it like this:
$this->products->new(array('foo' => 'bar'));
So there is any reason for such behavior or it just not implemented yet?