[Flow] Persist Classes that extends another Class

Johannes mailing at var-dumper.de
Mon Nov 4 23:29:49 CET 2013


Sry, little correction. The Error occurs not on adding but on reading. I Got some records in the database and the error pops up as soon as i use the model on any fluid template.

Am 04.11.2013 um 23:24 schrieb Johannes <mailing at var-dumper.de>:

> Hey guys,
> 
> i got an abstract class and two models wich extends that abstract class. No i want to persist those ($repository->add(model)). But i keep getting an SQL-Error like this on Query
> 
> "SELECT t0_.persistence_object_identifier AS persistence_object_identifier0, t0_.name AS name1, t1_.plannedprojecthours AS plannedprojecthours2, t1_.projectgroup AS projectgroup3 FROM tisum_project_domain_model_project t1_“
> 
> " Unknown column 't0_.persistence_object_identifier' in 'field list‘  "
> 
> As you can see the query isn’t build correctly. There is a mix of t0_ and t1_.
> 
> So how can i get this working? Right now i got 2 repositories. One for each model that extends the abstract class. Do i need an Repository for the abstract class also?
> 
> Thank you!
> 
> Johannes
> 
> --
> Twitter:
> @stolle_
> 
> ---------------------------------------------------------
> This E-Mai is signed with OpenPGP
> Pub-Key: 31ED1680
> 
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list