Bug #3529

Detection of new objects in argument handling fails

Added by Karsten Dambekalns over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
MVC
Start date:
2009-06-01
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

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.

#1

Updated by Karsten Dambekalns over 12 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 over 12 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns
#3

Updated by Karsten Dambekalns over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Resolved as of r2522

Also available in: Atom PDF