Skip to content

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

Open
spitd1 wants to merge 10 commits intoczcodecamp:masterfrom
spitd1:master
Open

Úkol 3 - Vojtěch Havlíček#30
spitd1 wants to merge 10 commits intoczcodecamp:masterfrom
spitd1:master

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

];
}

/**
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.

2 participants