Skip to content

Commit

Permalink
Update the 'storeAs' values as discussed in doctrine#1349
Browse files Browse the repository at this point in the history
  • Loading branch information
Jachim Coudenys committed Apr 15, 2016
1 parent ec58c32 commit 3db4187
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class ReferenceMany extends AbstractField
public $type = 'many';
public $reference = true;
public $simple = false; // @deprecated
public $storeAs = ClassMetadataInfo::REFERENCE_STORE_AS_FULL;
public $storeAs = ClassMetadataInfo::REFERENCE_STORE_AS_DB_REF_WITH_DB;
public $targetDocument;
public $discriminatorField;
public $discriminatorMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class ReferenceOne extends AbstractField
public $type = 'one';
public $reference = true;
public $simple = false; // @deprecated
public $storeAs = ClassMetadataInfo::REFERENCE_STORE_AS_FULL;
public $storeAs = ClassMetadataInfo::REFERENCE_STORE_AS_DB_REF_WITH_DB;
public $targetDocument;
public $discriminatorField;
public $discriminatorMap;
Expand Down
8 changes: 3 additions & 5 deletions lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,10 @@ class ClassMetadataInfo implements \Doctrine\Common\Persistence\Mapping\ClassMet

/**#@+
* The types of storeAs references
*
* TODO move this to a different class?
*/
const REFERENCE_STORE_AS_SIMPLE = 'simple';
const REFERENCE_STORE_AS_PARTIAL = 'partial';
const REFERENCE_STORE_AS_FULL = 'full';
const REFERENCE_STORE_AS_ID = 'id';
const REFERENCE_STORE_AS_DB_REF = 'dbRef';
const REFERENCE_STORE_AS_DB_REF_WITH_DB = 'dbRefWithDb';
/**#@-*/

/* The inheritance mapping types */
Expand Down

0 comments on commit 3db4187

Please sign in to comment.