Changeset 4305
- Timestamp:
- 04/30/08 14:25:20 (14 months ago)
- Files:
-
- 1 modified
-
branches/0.11/lib/Doctrine/Record.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Record.php
r4300 r4305 199 199 } 200 200 201 $this->_errorStack = new Doctrine_Validator_ErrorStack(get_class($this));202 203 201 $repository = $this->_table->getRepository(); 204 202 $repository->add($this); … … 261 259 } 262 260 // Clear the stack from any previous errors. 263 $this-> _errorStack->clear();261 $this->getErrorStack()->clear(); 264 262 265 263 // Run validation process … … 273 271 } 274 272 275 return $this-> _errorStack->count() == 0 ? true : false;273 return $this->getErrorStack()->count() == 0 ? true : false; 276 274 } 277 275 … … 395 393 public function getErrorStack() 396 394 { 395 if ( ! $this->_errorStack) { 396 $this->_errorStack = new Doctrine_Validator_ErrorStack(get_class($this)); 397 } 398 397 399 return $this->_errorStack; 398 400 } … … 413 415 $this->_errorStack = $stack; 414 416 } else { 415 return $this-> _errorStack;417 return $this->getErrorStack(); 416 418 } 417 419 }