Permalink
Browse files

corrected namespace for Attachment class

  • Loading branch information...
1 parent 77a2cce commit be9fbbf64cfa1b1d678c173ef0d55ad80a7684e7 @janpieper janpieper committed Nov 3, 2011
Showing with 5 additions and 5 deletions.
  1. +4 −4 en/reference/attachments.rst
  2. +1 −1 en/reference/basic-mapping.rst
@@ -17,14 +17,14 @@ of a document of this type:
private $attachments;
}
-The attachments field is an array of ``Doctrine\ODM\CouchDB\Attachment`` instances.
+The attachments field is an array of ``Doctrine\CouchDB\Attachment`` instances.
Keys of the attachments array are the filenames of the attachments.
-The API of the ``Doctrine\ODM\CouchDB\Attachment`` looks as follows:
+The API of the ``Doctrine\CouchDB\Attachment`` looks as follows:
.. code-block:: php
- namespace Doctrine\ODM\CouchDB;
+ namespace Doctrine\CouchDB;
class Attachment
{
@@ -123,7 +123,7 @@ Sample usage:
$fh = fopen(__DIR__ . '/_files/logo.jpg', 'r');
$user = $dm->find('Doctrine\Tests\Models\CMS\CmsUser', 'user_with_attachment');
- $user->attachments['logo.jpg'] = \Doctrine\ODM\CouchDB\Attachment::createFromBinaryData($fh, 'image/jpeg');
+ $user->attachments['logo.jpg'] = \Doctrine\CouchDB\Attachment::createFromBinaryData($fh, 'image/jpeg');
$dm->flush();
@@ -170,7 +170,7 @@ You can map an array of all CouchDB attachments to a document to a field in your
private $attachments;
}
-The mapped field is indexed by filename and contains instances of ``Doctrine\ODM\CouchDB\Attachment``.
+The mapped field is indexed by filename and contains instances of ``Doctrine\CouchDB\Attachment``.
Contents of the attachments are loaded lazily by using the stub details inside the CouchDB document.
Document Repositories

0 comments on commit be9fbbf

Please sign in to comment.