Attachments =========== CouchDB supports attachments to documents and Docrine CouchDB ODM supports this aswell through a simple API. If you specify an attachments field for a document you can access all attachments of a document of this type: .. code-block:: php find('Doctrine\Tests\Models\CMS\CmsUser', 'user_with_attachment'); $user->attachments['logo.jpg'] = \Doctrine\CouchDB\Attachment::createFromBinaryData($fh, 'image/jpeg'); $dm->flush(); Attachments are value objects. If you want to replace an attachment with a new version just replace the Attachment instance at the appropriate filename key.