-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Entity Event #12
base: master
Are you sure you want to change the base?
Conversation
Sorry že vám kecám už do WIPU :-D Reviewed 4 of 7 files at r1. src/Entity/Event.php, line 19 at r2 (raw file):
Takhle to sice najdete v DOCu, ale takhle dostane entita ID až při persistu, takžé člověk přijde o jednu z výhod UUID, že existuje nezávisle na DB enginu. Navíc takhle je ID vlastně nullable. Ideálně používejte příštup co mám v example, tzn. ID generujete v constructoru. (Když se entita načíťá z DB tak se konstruktor nepoužívá o to se nemusíte bát._ src/Entity/Event.php, line 21 at r2 (raw file):
Tedy je otázka jestli psáť propery protected nebo private. Když pak dědíš tedy entitu rozšířuješ, tak bys nutně rodiče měnit nemusle, měl bys u value objectu jen rozšiřovat. Tzn. není nutné aby bylo protected. src/Entity/Event.php, line 51 at r2 (raw file):
getter na ID missing. src/Entity/EventType.php, line 16 at r2 (raw file):
Tohle už vůbec nebude fungovat. src/Entity/EventType.php, line 38 at r2 (raw file):
getter na ID src/Entity/SubEvent.php, line 19 at r2 (raw file):
Viz výše. src/Entity/SubEvent.php, line 34 at r2 (raw file):
Comments from Reviewable |
Review status: 4 of 7 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed. src/Entity/EventType.php, line 16 at r2 (raw file): Previously, michalhosna (Michal Hošna) wrote…
Copypasta z dokumentace nebude fungovat? :-O Huh :) src/Entity/EventType.php, line 38 at r2 (raw file): Previously, michalhosna (Michal Hošna) wrote…
getter na ID? V tvem examplu nebyl, tak jsem myslel, ze to je umyslne ;) Comments from Reviewable |
Review status: 4 of 7 files reviewed at latest revision, 7 unresolved discussions. src/Entity/Event.php, line 19 at r2 (raw file): Previously, michalhosna (Michal Hošna) wrote…
Done. src/Entity/Event.php, line 51 at r2 (raw file): Previously, michalhosna (Michal Hošna) wrote…
Done. src/Entity/EventType.php, line 16 at r2 (raw file): Previously, sukovec (Mike S.) wrote…
Done. src/Entity/EventType.php, line 38 at r2 (raw file): Previously, sukovec (Mike S.) wrote…
Done. src/Entity/SubEvent.php, line 19 at r2 (raw file): Previously, michalhosna (Michal Hošna) wrote…
Done. src/Entity/SubEvent.php, line 34 at r2 (raw file): Previously, michalhosna (Michal Hošna) wrote…
Done. Comments from Reviewable |
Review status: 4 of 7 files reviewed at latest revision, 7 unresolved discussions. src/Entity/Event.php, line 21 at r2 (raw file): Previously, michalhosna (Michal Hošna) wrote…
Done. Comments from Reviewable |
724e62f
to
1154910
Compare
This change is