Skip to content
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

Úkol 3 - Vojtěch Havlíček #30

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

spitd1
Copy link

@spitd1 spitd1 commented Oct 23, 2016

No description provided.


/**
* @ORM\ManyToOne(targetEntity="User", inversedBy="adresses")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
Copy link
Collaborator

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
Copy link
Collaborator

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()
];
}

/**
Copy link
Collaborator

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:
Copy link
Collaborator

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?

Copy link
Author

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?

Copy link
Collaborator

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants