Bug #3529
Detection of new objects in argument handling fails
Status: | Resolved | Start date: | 2009-06-01 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
Category: | MVC | |||
Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 1 | |||
PHP Version: | Complexity: | |||
Has patch: | Affected Flow version: |
Description
The symptom is #1237305720: Argument "newBlog": Querying the repository for the specified object was not successful.
When looking closer it turns out that on the first error all is well, but when submitting a second time, the exception is thrown. The reason is, that we rely on a new object to not have an UUID. But with the resolution of #3477 all entities get an UUID upon creation - boom.
History
#1 Updated by Karsten Dambekalns about 6 years ago
Possible fix: instead of the pointcut on <Entity>::__construct() use @within RepositoryInterface and method(add()) - then check the method argument, modify if needed.
#2 Updated by Karsten Dambekalns about 6 years ago
- Status changed from New to Accepted
- Assigned To set to Karsten Dambekalns
#3 Updated by Karsten Dambekalns about 6 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Resolved as of r2522