PHP, MongoDB and GridFS
The PHP annotations remember me of doing the same in Java pre-1.5. Still useful to separate metadata from your core code:
You can easily setup a Document that is stored using the MongoDB GridFS by using the @File annotation:
Update: there’s ☞ another post showing how to use PHP annotations for different types of embedded documents in MongoDB
via: http://www.jwage.com/2010/07/27/storing-files-with-mongodb-gridfs/