runthebusiness / reformation

Reformation is a branch of Doctrine Orm created from version 1.2.1. It contains many new features and bug fixes.
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Reformation: Unique Fields throw an error if you use replace #1

Closed runthebusiness closed 11 years ago

runthebusiness commented 11 years ago

If you are using replace they should not throw an error

runthebusiness commented 11 years ago

Fixed: I wrote an odd fix that just looks for errors that were just unique and labels the transaction as valid if they were the only type of error that occurred. This is an odd fix but was easy to implement.

Update: I wrote a better fix for this. Now I have a disabled validators features that I use to turn off the unique validator temporarily.

see:

Doctrine_Manager::getDisabledValidators, Doctrine_Manager::getDisabledValidator, Doctrine_Manager::setDisabledValidators, methods