Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SF][SF2][Symfony2]Nie poprawna dokumentacja ?
Fluke
post
Post #1





Grupa: Zarejestrowani
Postów: 247
Pomógł: 9
Dołączył: 20.09.2010
Skąd: Kraków

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


Witam,

Nie wiem czy ja nie widzę błędu czy dokumentacja do Symfony 2 jest nie poprawna...

Przykład: tutaj.

Jest tam kod:
  1. $taskForm = $this->createForm(new TaskType(), $task, array(
  2. 'em' => $this->getDoctrine()->getManager(),
  3. ));


A ja u siebie mam kod:
  1. $Form = $this->createForm(new CategoryForm(), null, array(
  2. 'em' => $this->getDoctrine()->getManager(),
  3. ));


Czy jest u mnie inaczej(po za nazwami) niż w dokumentacji ? Nie ? a wyskakuje mi błąd:
  1. The option "em" does not exist. Known options are: "action", "attr", "auto_initialize", "block_name", "by_reference", "cascade_validation", "compound", "constraints", "data", "data_class", "disabled", "empty_data", "error_bubbling", "error_mapping", "extra_fields_message", "inherit_data", "invalid_message", "invalid_message_parameters", "label", "label_attr", "mapped", "max_length", "method", "pattern", "post_max_size_message", "property_path", "read_only", "required", "translation_domain", "trim", "validation_groups", "virtual"
Go to the top of the page
+Quote Post

Posty w temacie


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: 13.10.2025 - 13:04