Bug #31502

Validation during persistence got lost in Doctrine addition

Added by Karsten Dambekalns almost 4 years ago. Updated over 3 years ago.

Status:Resolved Start date:2011-11-02
Priority:Must have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Validation
Target version:TYPO3 Flow Base Distribution - 1.0.2
PHP Version: Complexity:
Has patch:No Affected Flow version:FLOW3 1.0.0

Description

When Doctrine 2 was introduced our own persistence backend was removed - but it was the place where validation upon persistence was invoked. This was not discovered as there was no test covering this and argument validation is still working.


Related issues

related to TYPO3.Flow - Feature #31373: Annotation to enforce validation on setter Rejected 2011-10-28
related to TYPO3.Flow - Bug #32830: Validation on persist breaks with Doctrine Lazy Loading P... Resolved 2011-12-24

Associated revisions

Revision c87cc007
Added by Karsten Dambekalns over 3 years ago

[TASK] Move ObjectValidationFailedException out of Generic

The exception is not specific to generic persistence, thus it should
not be inside the Generic namespace.

Change-Id: I0651e3fcf361bb0dd50b2a6e3f02e494d075e27f
Related: #31502
Releases: 1.0, 1.1

Revision b809a395
Added by Karsten Dambekalns over 3 years ago

[BUGFIX] Make validation upon persistence work again

The validation upon persistence was dropped (more or less by accident)
when we switched to Doctrine. This change brings it back.

In addition it fixes the exception message produced in the generic
AbstractBackend when validation fails.

Change-Id: Ifb4dd252a490c0999a211867a5665a9cb6529796
Fixes: #31502
Releases: 1.0, 1.1

Revision a8e6d8e2
Added by Karsten Dambekalns over 3 years ago

[TASK] Move ObjectValidationFailedException out of Generic

The exception is not specific to generic persistence, thus it should
not be inside the Generic namespace.

Change-Id: Ifa4d572a74c3f01837d18d5eed29e1d51b282075
Related: #31502
Releases: 1.0, 1.1

Revision 3522f1b2
Added by Karsten Dambekalns over 3 years ago

[BUGFIX] Make validation upon persistence work again

The validation upon persistence was dropped (more or less by accident)
when we switched to Doctrine. This change brings it back.

In addition it fixes the exception message produced in the generic
AbstractBackend when validation fails.

Change-Id: If23af21f8cc148012a24acb15aab1d83ddb2af74
Fixes: #31502
Releases: 1.0, 1.1

History

#1 Updated by Karsten Dambekalns over 3 years ago

  • Target version changed from 1.0.1 to 1.0.2

#2 Updated by Mr. Jenkins over 3 years ago

Patch set 1 of change Ifb4dd252a490c0999a211867a5665a9cb6529796 has been pushed to the review server.
It is available at http://review.typo3.org/6988

#3 Updated by Karsten Dambekalns over 3 years ago

  • Status changed from Accepted to Under Review

#4 Updated by Karsten Dambekalns over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#5 Updated by Gerrit Code Review over 3 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/7142

#6 Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/7142

#7 Updated by Karsten Dambekalns over 3 years ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF