Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SF2][SF]Moduły: Tree,Translatable, Sluggable, Timestable, Loggable, Instalacja
basso
post
Post #1





Grupa: Zarejestrowani
Postów: 155
Pomógł: 1
Dołączył: 12.12.2010

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


Witam,
Zabrałem się za używanie: Tree,Translatable, Sluggable, Timestable, Loggable .
Z tego co wyczytałem, to do tego potrzeba jest zainstalowania Stof DoctrineExtensionsBundle.
Próbowałem zainstalować stąd: https://github.com/stof/StofDoctrineExtensi...s/doc/index.rst , ale nie bardzo mi to wychodzi.

Nie wiem czy dobrym torem idę. Wszystko robię na Symfony 2.1.

Stanąłem na i sypie błędami jak dopisuje to do configa "Add the extensions to your mapping" :
# app/config/config.yml
doctrine:
orm: ......

Podłączał ktoś z Was to?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
basso
post
Post #2





Grupa: Zarejestrowani
Postów: 155
Pomógł: 1
Dołączył: 12.12.2010

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


WItam,
no ... masz rację, okej mam to tak zrobione.

Teraz wrzucam w # app/config/config.yml Add the extensions to your mapping


Zamiast:
  1. # Doctrine Configuration
  2. #doctrine:
  3. # dbal:
  4. # driver: "%database_driver%"
  5. # host: "%database_host%"
  6. # port: "%database_port%"
  7. # dbname: "%database_name%"
  8. # user: "%database_user%"
  9. # password: "%database_password%"
  10. # charset: UTF8
  11. #
  12. # orm:
  13. # auto_generate_proxy_classes: "%kernel.debug%"
  14. # auto_mapping: true



Daję

  1. # app/config/config.yml
  2. doctrine:
  3. orm:
  4. entity_managers:
  5. default:
  6. mappings:
  7. gedmo_translatable:
  8. type: annotation
  9. prefix: Gedmo\Translatable\Entity
  10. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
  11. alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
  12. is_bundle: false
  13. gedmo_translator:
  14. type: annotation
  15. prefix: Gedmo\Translator\Entity
  16. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
  17. alias: GedmoTranslator # this one is optional and will default to the name set for the mapping
  18. is_bundle: false
  19. gedmo_loggable:
  20. type: annotation
  21. prefix: Gedmo\Loggable\Entity
  22. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
  23. alias: GedmoLoggable # this one is optional and will default to the name set for the mapping
  24. is_bundle: false
  25. gedmo_tree:
  26. type: annotation
  27. prefix: Gedmo\Tree\Entity
  28. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
  29. alias: GedmoTree # this one is optional and will default to the name set for the mapping
  30. is_bundle: false




i wyskakuje:

  1. Whoops, looks like something went wrong.
  2.  
  3. 1/1ServiceNotFoundException: The service "cache_warmer" has a dependency on a non-existent service "doctrine".
  4. in C:\wamp\www\sym2\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\
    Compiler\CheckExceptionOnInvalidReferenceBehaviorPass.php line 59
  5. at CheckExceptionOnInvalidReferenceBehaviorPass->processReferences(array(object(Reference))) in C:\wamp\www\sym2\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\
    Compiler\CheckExceptionOnInvalidReferenceBehaviorPass.php line 43



Kurcze ni teraz nie wiem czy to miało być zamiast tamtego czy dodatkowo. Ale i tak i tak próbuje i ten sam błąd.
Go to the top of the page
+Quote Post

Posty w temacie
- basso   [SF2][SF]Moduły: Tree,Translatable, Sluggable, Timestable, Loggable   22.01.2013, 22:48:28
- - pedro84   Jakimi błędami?   22.01.2013, 22:57:59
- - basso   Hej... system stawiałem i z deka mi zeszło, więc t...   26.01.2013, 12:18:44
- - pedro84   Nie czytasz dokumentacji dobrze, mieszasz instalac...   26.01.2013, 13:03:07
- - basso   WItam, no ... masz rację, okej mam to tak zrobion...   26.01.2013, 15:26:51
- - pedro84   Wrzuć na pastebin swoją konfigurację, bo coś masz ...   26.01.2013, 17:01:52
- - basso   ooo dzięki, Tutaj poniżej to czego potrzebujesz....   26.01.2013, 17:47:00
- - pedro84   Odkomentuj konfigurację doctrine.dbal (na podstawi...   26.01.2013, 17:55:11
- - basso   Dzięki wielkie za poświęcony czas. Jest coraz lepi...   26.01.2013, 18:50:28
- - pedro84   Skądże. Zajrzyj do tego linka, powinien wiele wyja...   26.01.2013, 19:41:55
- - basso   Hej, Z tego co mi podesłałeś to rozumiem, że w ma...   27.01.2013, 14:13:41
- - pedro84   Hej, zobacz te zagadnienia na Githubie: https://g...   27.01.2013, 14:26:37
- - basso   Działa mi sluggable, uaktywniłem jeszcze w config....   2.02.2013, 10:41:57
- - phpion   @basso: Na przyszłość proszę rozważniej przyznawać...   2.02.2013, 13:02:20
- - basso   A no chyba przegiąłem. Po prostu wklikiwałem Pyt...   21.04.2013, 14:08:14
- - semafor1985   u mnie też wywalalo ten blad zaaktualizowalem Symf...   22.04.2013, 10:23:20
- - basso   Mówisz o Symfony 2.2 ? Dużo się różni od 2.1, bo ...   22.04.2013, 23:13:18


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

 



RSS Aktualny czas: 7.10.2025 - 01:33