[Flow] Exception after validation error
Walter Meng
wm at psoft.at
Thu May 16 12:43:58 CEST 2013
Hi Steffen,
thx for your support.
Here you can see my DTO and the models http://pastebin.com/JNduDk4M
There is a 1:1 relation between both objects. Objektwohnraumobjekt holds the
foreignkey "objektid".
The identifier is named idnr (because my flow app accesses an existing db)
updateing and createing identifiers works as long as there is no validation
error.
Von: flow-bounces at lists.typo3.org [mailto:flow-bounces at lists.typo3.org] Im
Auftrag von Steffen Wickham
Gesendet: Donnerstag, 16. Mai 2013 09:30
An: flow at lists.typo3.org
Betreff: Re: [Flow] Exception after validation error
Hi Walter,
as the identifier seems to be empty, it would be nice to know how you
create the Objektwohnraumobjekt model within your DTO method
"getObjektwohnraumobjekt()" and the annotation of the
Objektwohnraumobjekt model as well. Normally a new identifier will be
generated while creating the new object.
Best regards,
Steffen
Am 16.05.13 09:00, schrieb Walter Meng:
> Hi,
> can you help me please?
>
> As soon as there is a validation error in my form, I get this error after
> correcting the error and executing update or createAction:
>
>
> Uncaught exception #1313663277 in line 186 of
>
..Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Persistence/Repository.ph
> p: The object of type "WL\Test\Domain\Model\Objektwohnraumobjekt"
> (identifier: "") which was passed to EntityManager->update() is not a
> previously persisted object. Check the code which updates this entity and
> make sure that only objects are updated which were persisted before.
> Alternatively use add() for persisting new objects." - See also:
> 20130516083806c24e93.txt
>
> I created a Dto (Data Transfer Object) like described in
> http://wiki.typo3.org/FLOW3_Cookbook to have multiple objects in one Fluid
> form.
>
> Here is my updateAction
>
> http://pastebin.com/ByNzmmkd
>
> Regards
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list