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

Ukol 3 - Vojtěch Bartoš #27

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

Ukol 3 - Vojtěch Bartoš #27

wants to merge 2 commits into from

Conversation

Barvoj
Copy link

@Barvoj Barvoj commented Oct 21, 2016

No description provided.

@@ -36,7 +36,25 @@ class User implements UserInterface
private $password;

/**
* @Assert\NotBlank()
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nejsem si jistý, jak správně řešit tuto validaci když pro registraci chci aby to nebylo null ale pro editaci adresy to null naopak chci..

# The name of the route to redirect to after logging out
target: homepage

context: primary_auth
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Našel jsem si, že lze sdílet context mezi více firewally. Nelíbí se mi ale, že musím u obou konfigurovat form_login i logout a jediné v čem se vlastně liší je, že tady chybí anonymous. Lze to napsat i úsporněji?

$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {

if ($address = $user->getAddress()) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je dobře volat pokaždé persist & flush ?

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.

2 participants