Changeset 4925 for trunk/lib/Doctrine
- Timestamp:
- 09/12/08 11:02:06 (4 months ago)
- Location:
- trunk/lib/Doctrine
- Files:
-
- 6 added
- 1 removed
- 2 modified
-
ClassMetadata.php (modified) (1 diff)
-
Connection/UnitOfWork.php (modified) (1 diff)
-
Id (deleted)
-
ORM/Id/AbstractIdGenerator.php (added)
-
ORM/Id/Assigned.php (added)
-
ORM/Id/IdentityGenerator.php (added)
-
ORM/Id/SequenceGenerator.php (added)
-
ORM/Id/SequenceIdentityGenerator.php (added)
-
ORM/Id/TableGenerator.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine/ClassMetadata.php
r4915 r4925 793 793 { 794 794 if ($this->_generatorType == self::GENERATOR_TYPE_IDENTITY) { 795 $this->_idGenerator = new Doctrine_ Id_IdentityGenerator($this->_em);795 $this->_idGenerator = new Doctrine_ORM_Id_IdentityGenerator($this->_em); 796 796 } else if ($this->_generatorType == self::GENERATOR_TYPE_SEQUENCE) { 797 $this->_idGenerator = new Doctrine_ Id_SequenceGenerator($this->_em);797 $this->_idGenerator = new Doctrine_ORM_Id_SequenceGenerator($this->_em); 798 798 } else if ($this->_generatorType == self::GENERATOR_TYPE_TABLE) { 799 $this->_idGenerator = new Doctrine_ Id_TableGenerator($this->_em);799 $this->_idGenerator = new Doctrine_ORM_Id_TableGenerator($this->_em); 800 800 } else { 801 $this->_idGenerator = new Doctrine_ Id_Assigned($this->_em);801 $this->_idGenerator = new Doctrine_ORM_Id_Assigned($this->_em); 802 802 } 803 803 } -
trunk/lib/Doctrine/Connection/UnitOfWork.php
r4910 r4925 639 639 case Doctrine_Entity::STATE_NEW: 640 640 $result = $class->getIdGenerator()->generate($entity); 641 if ($result == Doctrine_ Id_AbstractIdGenerator::POST_INSERT_INDICATOR) {641 if ($result == Doctrine_ORM_Id_AbstractIdGenerator::POST_INSERT_INDICATOR) { 642 642 $insertNow[$entity->getOid()] = $entity; 643 643 } else {