Changeset 4911 for trunk/lib/Doctrine
- Timestamp:
- 09/12/08 09:59:44 (4 months ago)
- Location:
- trunk/lib/Doctrine
- Files:
-
- 2 added
- 3 removed
- 6 modified
-
Configuration.php (modified) (1 diff)
-
DatabasePlatform.php (deleted)
-
DataType.php (deleted)
-
DBAL/Types/Type.php (added)
-
Entity.php (modified) (7 diffs)
-
EntityManager.php (modified) (1 diff)
-
EntityPersister/Abstract.php (modified) (2 diffs)
-
Hydrator/Abstract.php (modified) (1 diff)
-
Hydrator/RecordDriver.php (modified) (1 diff)
-
Null.php (deleted)
-
ORM/Internal/Null.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine/Configuration.php
r4866 r4911 60 60 public function __construct() 61 61 { 62 $this->_nullObject = Doctrine_ Null::$INSTANCE;62 $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 63 63 $this->_initAttributes(); 64 64 } -
trunk/lib/Doctrine/Entity.php
r4877 r4911 239 239 $name = $this->_class->getIdentifier(); 240 240 $name = $name[0]; 241 if (isset($this->_data[$name]) && $this->_data[$name] !== Doctrine_ Null::$INSTANCE) {241 if (isset($this->_data[$name]) && $this->_data[$name] !== Doctrine_ORM_Internal_Null::$INSTANCE) { 242 242 $this->_id[$name] = $this->_data[$name]; 243 243 } … … 392 392 final protected function _get($fieldName) 393 393 { 394 $nullObj = Doctrine_ Null::$INSTANCE;394 $nullObj = Doctrine_ORM_Internal_Null::$INSTANCE; 395 395 if (isset($this->_data[$fieldName])) { 396 396 return $this->_data[$fieldName] !== $nullObj ? … … 482 482 final public function _internalGetField($fieldName) 483 483 { 484 if ($this->_data[$fieldName] === Doctrine_ Null::$INSTANCE) {484 if ($this->_data[$fieldName] === Doctrine_ORM_Internal_Null::$INSTANCE) { 485 485 return null; 486 486 } … … 515 515 final public function _internalGetReference($fieldName) 516 516 { 517 if ($this->_references[$fieldName] === Doctrine_ Null::$INSTANCE) {517 if ($this->_references[$fieldName] === Doctrine_ORM_Internal_Null::$INSTANCE) { 518 518 return null; 519 519 } … … 535 535 final public function _internalSetReference($name, $value, $completeBidirectional = false) 536 536 { 537 if (is_null($value) || $value === Doctrine_ Null::$INSTANCE) {537 if (is_null($value) || $value === Doctrine_ORM_Internal_Null::$INSTANCE) { 538 538 $this->_references[$name] = $value; 539 539 return; // early exit! … … 679 679 { 680 680 if (isset($this->_data[$fieldName])) { 681 if ($this->_data[$fieldName] === Doctrine_ Null::$INSTANCE) {681 if ($this->_data[$fieldName] === Doctrine_ORM_Internal_Null::$INSTANCE) { 682 682 return false; 683 683 } … … 688 688 } 689 689 if (isset($this->_references[$fieldName]) && 690 $this->_references[$fieldName] !== Doctrine_ Null::$INSTANCE) {690 $this->_references[$fieldName] !== Doctrine_ORM_Internal_Null::$INSTANCE) { 691 691 return true; 692 692 } -
trunk/lib/Doctrine/EntityManager.php
r4877 r4911 159 159 $this, new Doctrine_ClassMetadata_CodeDriver()); 160 160 $this->_unitOfWork = new Doctrine_Connection_UnitOfWork($this); 161 $this->_nullObject = Doctrine_ Null::$INSTANCE;161 $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 162 162 } 163 163 -
trunk/lib/Doctrine/EntityPersister/Abstract.php
r4877 r4911 81 81 $this->_conn = $em->getConnection(); 82 82 $this->_classMetadata = $classMetadata; 83 $this->_nullObject = Doctrine_ Null::$INSTANCE;83 $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 84 84 } 85 85 … … 288 288 $columnName = $entity->getClass()->getColumnName($field); 289 289 290 if ($newVal === Doctrine_ Null::$INSTANCE) {290 if ($newVal === Doctrine_ORM_Internal_Null::$INSTANCE) { 291 291 $result[$columnName] = null; 292 292 continue; -
trunk/lib/Doctrine/Hydrator/Abstract.php
r4718 r4911 68 68 { 69 69 $this->_em = $em; 70 $this->_nullObject = Doctrine_ Null::$INSTANCE;70 $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 71 71 } 72 72 -
trunk/lib/Doctrine/Hydrator/RecordDriver.php
r4866 r4911 44 44 public function __construct(Doctrine_EntityManager $em) 45 45 { 46 $this->_nullObject = Doctrine_ Null::$INSTANCE;46 $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 47 47 $this->_em = $em; 48 48 }