Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 2 291 Pomógł: 156 Dołączył: 23.09.2007 Skąd: ITALY-MILAN Ostrzeżenie: (10%)
|
Witam mam maly problem potrzebuje usunac wszystkie tlumaczenia z gedmo gdy usuwam jakis rekord.
Problem polega na tym ze nie moge uzywa dotakowych repozytoriow ani encji. Wiec takie rozwiazanie odpada:
Poki co probowalem tak:
W translations znajduje sie: Kod Array ( [0] => Gedmo\Translatable\Entity\Translation Object ( [id:protected] => 1 [locale:protected] => pl_PL [objectClass:protected] => Meritoo\Cmf\PagesContentBundle\Entity\PagesContent [field:protected] => title [foreignKey:protected] => 1 [content:protected] => Strona główna ) [1] => Gedmo\Translatable\Entity\Translation Object ( [id:protected] => 3 [locale:protected] => en_GB [objectClass:protected] => Meritoo\Cmf\PagesContentBundle\Entity\PagesContent [field:protected] => title [foreignKey:protected] => 1 [content:protected] => Strona główna ) [2] => Gedmo\Translatable\Entity\Translation Object ( [id:protected] => 5 [locale:protected] => de_DE [objectClass:protected] => Meritoo\Cmf\PagesContentBundle\Entity\PagesContent [field:protected] => title [foreignKey:protected] => 1 [content:protected] => Strona główna ) [3] => Gedmo\Translatable\Entity\Translation Object ( [id:protected] => 7 [locale:protected] => fr_FR [objectClass:protected] => Meritoo\Cmf\PagesContentBundle\Entity\PagesContent [field:protected] => title [foreignKey:protected] => 1 [content:protected] => Strona główna ) [4] => Gedmo\Translatable\Entity\Translation Object ( [id:protected] => 9 [locale:protected] => en_US [objectClass:protected] => Meritoo\Cmf\PagesContentBundle\Entity\PagesContent [field:protected] => title [foreignKey:protected] => 1 [content:protected] => Strona główna ) ) Czyli mamy encje Translation wiec dlaczego remove nie dziala? Zero bledow kompletnie nic a w bazie tlumaczenia dalej sa. Czy ktos wie jak rozwiazac problem? |
|
|
|
marcio [Symfony2][Doctrine]Usuwanie translacji gedmo 9.10.2012, 10:15:12
ano Skoro masz 'tłumaczalny' model to nie mów,... 9.10.2012, 17:25:17 ![]() ![]() |
|
Aktualny czas: 23.12.2025 - 16:47 |