Question

I am trying to create dynamic attributes from MongoDB Collection object name in YII framework. I am using YIIMongoDBSuite extension can anybody provide idea for this ?

Was it helpful?

Solution

Instead of Using save() function of EmongoDocument use insert and pass parameter so that it will save the attributes what ever you pass.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top