Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> zf2 +doctrine usuwanie kolumny
bobi194
post 21.03.2014, 12:18:48
Post #1





Grupa: Zarejestrowani
Postów: 34
Pomógł: 0
Dołączył: 24.04.2006

Ostrzeżenie: (0%)
-----


Witam
mam w bazie tabelę user
usunąłem z niej dwie kolumny, następnie w klasie User.php odpowiadającej tej tabeli usunąłem odpowiednio te dwie zmienne i metody dostępowe niestety
teraz dostaję komunikat:
  1. Doctrine\DBAL\DBALException
  2.  
  3. Plik:
  4.  
  5. C:\xampp1_8\htdocs\zf2-tutorial\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php:91
  6.  
  7. Komunikat:
  8.  
  9. An exception occurred while executing 'SELECT t0.usr_name AS usr_name1, t0.usr_password AS usr_password2, t0.usr_email AS usr_email3, t0.usrl_id AS usrl_id4, t0.usr_question AS usr_question5, t0.usr_answer AS usr_answer6, t0.usr_picture AS usr_picture7, t0.usr_password_salt AS usr_password_salt8, t0.usr_registration_date AS usr_registration_date9, t0.usr_registration_token AS usr_registration_token10, t0.usr_email_confirmed AS usr_email_confirmed11, t0.usr_id AS usr_id12 FROM users t0':
  10.  
  11. SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.usrl_id' in 'field list'
  12.  
  13.  

co jeszcze muszę zrobić w doctrinie aby to poprawić
Go to the top of the page
+Quote Post
redeemer
post 21.03.2014, 13:05:57
Post #2





Grupa: Zarejestrowani
Postów: 915
Pomógł: 210
Dołączył: 8.09.2009
Skąd: Tomaszów Lubelski/Wrocław

Ostrzeżenie: (0%)
-----


Wyczyść cache.
Kod
app/console doctrine:cache:clear-metadata
app/console doctrine:cache:clear-query  
app/console doctrine:cache:clear-result


--------------------
Go to the top of the page
+Quote Post
bobi194
post 21.03.2014, 13:18:13
Post #3





Grupa: Zarejestrowani
Postów: 34
Pomógł: 0
Dołączył: 24.04.2006

Ostrzeżenie: (0%)
-----


wykonałem ale nic to nie dało
  1.  
  2. C:\xampp1_8\htdocs\zf2-tutorial\vendor\doctrine\doctrine-module\bin>php doctrine
  3. -module orm:clear-cache:metadata
  4. Clearing ALL Metadata cache entries
  5. Successfully deleted cache entries.
  6.  
  7. C:\xampp1_8\htdocs\zf2-tutorial\vendor\doctrine\doctrine-module\bin>php doctrine
  8. -module orm:clear-cache:query
  9. Clearing ALL Query cache entries
  10. Successfully deleted cache entries.
  11.  
  12. C:\xampp1_8\htdocs\zf2-tutorial\vendor\doctrine\doctrine-module\bin>php doctrine
  13. -module orm:clear-cache:result
  14. Clearing ALL Result cache entries
  15. Successfully deleted cache entries.

Nie wiem co jest grane
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.03.2024 - 17:00