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

uprava zpracovani formularovych dat #26

Open
chemix opened this issue Mar 22, 2020 · 3 comments
Open

uprava zpracovani formularovych dat #26

chemix opened this issue Mar 22, 2020 · 3 comments

Comments

@chemix
Copy link
Member

chemix commented Mar 22, 2020

Nette formulare umoznuji pouzit tridu pro prenos dat, tim by se zjednodusilo (= ne tak dlouhy radek) ukladani formularovych dat do modelu.

https://github.com/nette/forms/blob/109f377fabd7efe052f610b95eda3948380df762/tests/Forms/Container.values.mapping.phpt#L132

@TonnyJe
Copy link

TonnyJe commented Mar 23, 2020

Co se očekává jako řešení tohoto issue? Rád bych se zapojil.

@chemix
Copy link
Member Author

chemix commented Mar 24, 2020

Ahoj @TonnyJe. Moje predstava je pouzit v kodu neco jako

$form->setMappedType(RegistrationFormData::class);

A mit RegistrationFormData jako takovou datovou prenosku.

A pak misto https://github.com/planette/nettecamp.cz/blob/master/app/modules/FrontModule/Registration/components/RegistrationForm/RegistrationForm.php#L133 posilat do te tridy nejak tyhle zabalena data. Ale sam zatim s "setMappedType" nemam zkusenosti.

TonnyJe added a commit to TonnyJe/nettecamp.cz that referenced this issue Mar 24, 2020
Solution of issue:
KreativniLab#26
@TonnyJe TonnyJe mentioned this issue Mar 24, 2020
@TonnyJe
Copy link

TonnyJe commented Mar 25, 2020

Ještě doporučuji aktualizovat composer balíčky a trochu ten kód aktualizovat. S composer balíčky staženými z GITu mi to nejelo vůbec a vidím, že i pipeliny kvůli něčemu křičí. Kdyby cokoliv tak piš.

TonnyJe added a commit to TonnyJe/nettecamp.cz that referenced this issue Mar 26, 2020
Solution of issue:
KreativniLab#26
TonnyJe added a commit to TonnyJe/nettecamp.cz that referenced this issue Mar 26, 2020
Solution of issue:
KreativniLab#26
TonnyJe added a commit to TonnyJe/nettecamp.cz that referenced this issue Mar 26, 2020
Solution of issue:
KreativniLab#26
TonnyJe added a commit to TonnyJe/nettecamp.cz that referenced this issue Mar 26, 2020
Solution of issue:
KreativniLab#26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants