![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 426 Pomógł: 1 Dołączył: 2.10.2005 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Mam pytanie odnośnie nazewnictwa tabel w Doctrine. Ze wzglądu na autoloadera dodaje do ich nazwa początek Table_ np: Table_Users, Table_News itd:
I mam pytanie czy takie nazewnictwo nie przysporzy mi kłopotów z zapytaniami (joiny) oraz tworzenie kluczy obcych między tabelami, chce to wiedzieć aby potem nie zorientować sie że popełniłem błąd... Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%) ![]() ![]() |
1. NTF --> Gotowe skrypty
2. Poczytaj o konwencjach nazweniczych Doctrine -- bo kiedys byly z tym problemy -------------------- Nie lubię jednorożców.
|
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 426 Pomógł: 1 Dołączył: 2.10.2005 Ostrzeżenie: (0%) ![]() ![]() |
No wkońcu znalazłem po części odpowiedz:
Cytat Table and class naming
Doctrine automatically creates table names from the record class names. For this reason, it is recommended to name your record classes using the following rules: Use CamelCase naming Underscores are allowed The first letter must be capitalized Example. My_PerfectClass If you need to use a different naming schema, you can override this using the setTableName() method in the setTableDefinition() method. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 06:02 |