Changeset 4911 for trunk/lib/Doctrine

Show
Ignore:
Timestamp:
09/12/08 09:59:44 (4 months ago)
Author:
romanb
Message:

moved Null/Type/Platform

Location:
trunk/lib/Doctrine
Files:
2 added
3 removed
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Doctrine/Configuration.php

    r4866 r4911  
    6060    public function __construct() 
    6161    { 
    62         $this->_nullObject = Doctrine_Null::$INSTANCE; 
     62        $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 
    6363        $this->_initAttributes(); 
    6464    } 
  • trunk/lib/Doctrine/Entity.php

    r4877 r4911  
    239239            $name = $this->_class->getIdentifier(); 
    240240            $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) { 
    242242                $this->_id[$name] = $this->_data[$name]; 
    243243            } 
     
    392392    final protected function _get($fieldName) 
    393393    { 
    394         $nullObj = Doctrine_Null::$INSTANCE; 
     394        $nullObj = Doctrine_ORM_Internal_Null::$INSTANCE; 
    395395        if (isset($this->_data[$fieldName])) { 
    396396            return $this->_data[$fieldName] !== $nullObj ? 
     
    482482    final public function _internalGetField($fieldName) 
    483483    { 
    484         if ($this->_data[$fieldName] === Doctrine_Null::$INSTANCE) { 
     484        if ($this->_data[$fieldName] === Doctrine_ORM_Internal_Null::$INSTANCE) { 
    485485            return null; 
    486486        } 
     
    515515    final public function _internalGetReference($fieldName) 
    516516    { 
    517         if ($this->_references[$fieldName] === Doctrine_Null::$INSTANCE) { 
     517        if ($this->_references[$fieldName] === Doctrine_ORM_Internal_Null::$INSTANCE) { 
    518518            return null; 
    519519        } 
     
    535535    final public function _internalSetReference($name, $value, $completeBidirectional = false) 
    536536    { 
    537         if (is_null($value) || $value === Doctrine_Null::$INSTANCE) { 
     537        if (is_null($value) || $value === Doctrine_ORM_Internal_Null::$INSTANCE) { 
    538538            $this->_references[$name] = $value; 
    539539            return; // early exit! 
     
    679679    { 
    680680        if (isset($this->_data[$fieldName])) { 
    681             if ($this->_data[$fieldName] === Doctrine_Null::$INSTANCE) { 
     681            if ($this->_data[$fieldName] === Doctrine_ORM_Internal_Null::$INSTANCE) { 
    682682                return false; 
    683683            } 
     
    688688        } 
    689689        if (isset($this->_references[$fieldName]) && 
    690                 $this->_references[$fieldName] !== Doctrine_Null::$INSTANCE) { 
     690                $this->_references[$fieldName] !== Doctrine_ORM_Internal_Null::$INSTANCE) { 
    691691            return true; 
    692692        } 
  • trunk/lib/Doctrine/EntityManager.php

    r4877 r4911  
    159159                $this, new Doctrine_ClassMetadata_CodeDriver()); 
    160160        $this->_unitOfWork = new Doctrine_Connection_UnitOfWork($this); 
    161         $this->_nullObject = Doctrine_Null::$INSTANCE; 
     161        $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 
    162162    } 
    163163     
  • trunk/lib/Doctrine/EntityPersister/Abstract.php

    r4877 r4911  
    8181        $this->_conn = $em->getConnection(); 
    8282        $this->_classMetadata = $classMetadata; 
    83         $this->_nullObject = Doctrine_Null::$INSTANCE; 
     83        $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 
    8484    } 
    8585     
     
    288288            $columnName = $entity->getClass()->getColumnName($field); 
    289289 
    290             if ($newVal === Doctrine_Null::$INSTANCE) { 
     290            if ($newVal === Doctrine_ORM_Internal_Null::$INSTANCE) { 
    291291                $result[$columnName] = null; 
    292292                continue; 
  • trunk/lib/Doctrine/Hydrator/Abstract.php

    r4718 r4911  
    6868    { 
    6969        $this->_em = $em; 
    70         $this->_nullObject = Doctrine_Null::$INSTANCE; 
     70        $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 
    7171    } 
    7272 
  • trunk/lib/Doctrine/Hydrator/RecordDriver.php

    r4866 r4911  
    4444    public function __construct(Doctrine_EntityManager $em) 
    4545    { 
    46         $this->_nullObject = Doctrine_Null::$INSTANCE; 
     46        $this->_nullObject = Doctrine_ORM_Internal_Null::$INSTANCE; 
    4747        $this->_em = $em; 
    4848    }