[TYPO3-mvc] mm relation to foreign table static_countries does not work properly

Sebastian Schreiber me at schreibersebastian.de
Sun Jan 8 12:25:08 CET 2012


How does your tca-configuration look like?

Am 08.01.2012 10:57, schrieb Domi:
> Hello,
>
> I am facing following problem:
>
> I modeled two entities person and country, country is mapped to 
> static_countries. Between person and country I declared a mm-relation. 
> If I add now a country to persons countries and save this person 
> object via its repository. If I load the instance of the person, its 
> countries are empty. Inside of the mysql tables the mm-relation table 
> has the correct entry. If I enter now a dummy entry into the empty 
> country table which is generated by the extension_builder which 
> actually shouldnt be used, because of the mapping to static_countries, 
> then I get the right countries instance inside of person.
>
> How can I resolve the right update to the mm-relation of a foreign 
> table of my domain model?
>
> inside of setup.txt:
> config.tx_extbase.persistence.classes {
> Tx_MyExt_Domain_Model_Country {
>         mapping {
>             tableName = static_countries
>         }
>     }
> }
>
> Mysql:
> [person]
> +countries
>
> [country]->mapped to static_countries
>
> Thanks for any help!
>
> Regards,
> Dominic
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


-- 
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Schanzenstraße 27, Schlosserei 4
D-51063 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 217 / 5269 / 4675



More information about the TYPO3-project-typo3v4mvc mailing list