Nilesh Kumar
Nilesh Kumar

Reputation: 400

How to save Mongodb embedded array in Yii2

I am new in Mongodb and YII2. I just want to know how can I save embedded array using YII2 framework?

Upvotes: 2

Views: 817

Answers (1)

lazycommit
lazycommit

Reputation: 414

As mentioned in yii2-mongodb component readme "This extension does not provide any special way to work with embedded documents (sub-documents) at the moment."

So, you may look at Doctrine MongoDB ODM and adopt it into yii2 framework as well as it done in many other frameworks. Doctrine ODM has most useful features to manage your embedded data among other PHP MongoDB ODMs.

Upvotes: 1

Related Questions