Changeset 4944 for trunk/lib/Doctrine

Show
Ignore:
Timestamp:
09/12/08 13:34:46 (4 months ago)
Author:
romanb
Message:

moved Collection

Location:
trunk/lib/Doctrine
Files:
1 added
3 removed
3 modified

Legend:

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

    r4941 r4944  
    699699     * @return Doctrine::ORM::EntityManager The created EntityManager. 
    700700     */ 
    701     public static function create($conn, $name, Doctrine_Configuration $config = null, 
    702             Doctrine_EventManager $eventManager = null) 
     701    public static function create($conn, $name, Doctrine_Common_Configuration $config = null, 
     702            Doctrine_Common_EventManager $eventManager = null) 
    703703    { 
    704704        if (is_array($conn)) { 
     
    710710         
    711711        if (is_null($config)) { 
    712             $config = new Doctrine_Configuration(); 
     712            $config = new Doctrine_Common_Configuration(); 
    713713        } 
    714714        if (is_null($eventManager)) { 
    715             $eventManager = new Doctrine_EventManager(); 
     715            $eventManager = new Doctrine_Common_EventManager(); 
    716716        } 
    717717         
  • trunk/lib/Doctrine/ORM/Entity.php

    r4930 r4944  
    544544        if ($rel->isOneToOne() && ! $value instanceof Doctrine_ORM_Entity) { 
    545545            throw Doctrine_Entity_Exception::invalidValueForOneToOneReference(); 
    546         } else if (($rel->isOneToMany() || $rel->isManyToMany()) && ! $value instanceof Doctrine_Collection) { 
     546        } else if (($rel->isOneToMany() || $rel->isManyToMany()) && ! $value instanceof Doctrine_ORM_Collection) { 
    547547            throw Doctrine_Entity_Exception::invalidValueForOneToManyReference(); 
    548548        } 
  • trunk/lib/Doctrine/ORM/Internal/Hydration/ObjectDriver.php

    r4930 r4944  
    5050    public function getElementCollection($component) 
    5151    { 
    52         $coll = new Doctrine_Collection($component); 
     52        $coll = new Doctrine_ORM_Collection($component); 
    5353        $this->_collections[] = $coll; 
    5454 
     
    8181    } 
    8282     
    83     public function registerCollection(Doctrine_Collection $coll) 
     83    public function registerCollection(Doctrine_ORM_Collection $coll) 
    8484    { 
    8585        $this->_collections[] = $coll;