Changeset 4944 for trunk/lib/Doctrine
- Timestamp:
- 09/12/08 13:34:46 (4 months ago)
- Location:
- trunk/lib/Doctrine
- Files:
-
- 1 added
- 3 removed
- 3 modified
-
Collection.php (deleted)
-
EntityManager.php (modified) (2 diffs)
-
ORM/Collection.php (added)
-
ORM/Entity.php (modified) (1 diff)
-
ORM/Internal/Hydration/ObjectDriver.php (modified) (2 diffs)
-
Sequence.php (deleted)
-
Transaction.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine/EntityManager.php
r4941 r4944 699 699 * @return Doctrine::ORM::EntityManager The created EntityManager. 700 700 */ 701 public static function create($conn, $name, Doctrine_Co nfiguration $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) 703 703 { 704 704 if (is_array($conn)) { … … 710 710 711 711 if (is_null($config)) { 712 $config = new Doctrine_Co nfiguration();712 $config = new Doctrine_Common_Configuration(); 713 713 } 714 714 if (is_null($eventManager)) { 715 $eventManager = new Doctrine_ EventManager();715 $eventManager = new Doctrine_Common_EventManager(); 716 716 } 717 717 -
trunk/lib/Doctrine/ORM/Entity.php
r4930 r4944 544 544 if ($rel->isOneToOne() && ! $value instanceof Doctrine_ORM_Entity) { 545 545 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) { 547 547 throw Doctrine_Entity_Exception::invalidValueForOneToManyReference(); 548 548 } -
trunk/lib/Doctrine/ORM/Internal/Hydration/ObjectDriver.php
r4930 r4944 50 50 public function getElementCollection($component) 51 51 { 52 $coll = new Doctrine_ Collection($component);52 $coll = new Doctrine_ORM_Collection($component); 53 53 $this->_collections[] = $coll; 54 54 … … 81 81 } 82 82 83 public function registerCollection(Doctrine_ Collection $coll)83 public function registerCollection(Doctrine_ORM_Collection $coll) 84 84 { 85 85 $this->_collections[] = $coll;