-
Notifications
You must be signed in to change notification settings - Fork 13
Úkol 3 - Vojtěch Havlíček #30
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
base: master
Are you sure you want to change the base?
Conversation
also refactoring entity typo mistake (adress -> address)
Registered user profile
|
||
/** | ||
* @ORM\ManyToOne(targetEntity="User", inversedBy="adresses") | ||
* @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tohle ani není třeba vyplňovat.
@@ -0,0 +1,164 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hlídej si co commituješ :)
@@ -113,4 +116,61 @@ public function superSecretAction() | |||
]; | |||
} | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taky udělal bych na to separátní Controller.
class: AppBundle\Controller\AdressController | ||
autowire: true | ||
|
||
app.facade.adress_facade: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opravdu si chtěl tohle smazat?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No původně jsem chtěl pro adresu vytvořit vlastní kontroler, případně to udělat stejným principem jako jsou produkty a kategorie, ale nakonec jsem to spojil s user kontrolerem. Platí tedy obecně, že pro přehlednost a lepší použitelnost je dobrý mít pro každou entitu vlastní kontroler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) Hodím to do přednášky :)
No description provided.