Drukowana wersja tematu

Kliknij tu, aby zobaczyć temat w orginalnym formacie

Forum PHP.pl _ Skrypty obsługi baz danych _ zf2 +doctrine usuwanie kolumny

Napisany przez: bobi194 21.03.2014, 12:18:48

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ć

Napisany przez: redeemer 21.03.2014, 13:05:57

Wyczyść cache.

Kod
app/console doctrine:cache:clear-metadata
app/console doctrine:cache:clear-query  
app/console doctrine:cache:clear-result

Napisany przez: bobi194 21.03.2014, 13:18:13

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

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)