![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 162 Pomógł: 2 Dołączył: 18.01.2008 Ostrzeżenie: (0%) ![]() ![]() |
Jako że symfony idzie w stronę doctrine postanowiłem się przenieść na ten ORM..Stworzyłem schema...dodałem polecenie build all Wszystko ładnie się zrobiło. Następnie stworzyłem moduł "article" na podstawie Modelu "Article" tutaj też nie było problemów.<br><br>Problem pojawił się dopiero gdy chciałem dodać nowy artykuł Po wpisaniu tytułu i treści klikając na "save" wykrzacza się.....<br><br>P.S ten sam kod tylko że na Propelu zrobiłem i tam działa....Chyba coś nie włączyłem w doctrine...bo jedynie co zrobiłem to w pliku <code>ProjectConfiguration.class.php</code> wpisałem:
Kod public function setup() { $this->enablePlugins(array('sfDoctrinePlugin')); $this->disablePlugins(array('sfPropelPlugin')); } oto błąd: Kod 500 | Internal Server Error | Doctrine_Validator_Exception
Validation failed in class article 2 fields had validation errors: * 1 validator failed on title (type) * 1 validator failed on tresc (type)</h2> Ten post edytował stirith 11.10.2009, 20:35:41 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 16:29 |