Log message #4053588

# At Username Text
# Jul 18th 2017, 15:31 paul_83uk I've just discovered that if you set a cookie but then the controller method never completes (redirected due to SAML authentication) the cookie never gets set. Is this expected behaviour? If so I will raise an issue with the docs. :slightly_smiling_face:
# Jul 18th 2017, 15:31 jeremyharris for now I admit I bake a fresh migration specifically for adding data sometimes (e.g., a new user group or something that has no admin backend)
# Jul 18th 2017, 15:31 mikesmoniker mic_: We looked at 2->3 for one of our apps (many dozens of models, actions, etc.) and it looked pretty bad. We ended up not doing it. The big bottlenecks where updating all the DB queries/hooks/etc. and investigating/updating plugins.
# Jul 18th 2017, 15:31 mic_ cleptric: yes, I know. I have a bunch of apps running 1.2/1.3 and then 3.x. To put numbers: the app is ca. 27k lines (controller, model etc.). I wanted 1.2->1.3, as that would make 1.3->2.10 easier (and that opens road to PHP7)
# Jul 18th 2017, 15:30 jeremyharris I *wish* seeds were tracked like migrations. that’d be an amazing feature imo, keep the schema/data separate
# Jul 18th 2017, 15:29 jeremyharris awi I don’t quite understand
# Jul 18th 2017, 15:29 adriencs @genellern @jeremyharris thanks, next time I'll double-check the doc -_-
# Jul 18th 2017, 15:29 cleptric I agree with @jeremyharris Seeds are nice to have for local development
# Jul 18th 2017, 15:29 cleptric mic_ Ok, there are quite a few options on how to archive that. Unfortunately the upgrade from 2y -> 3.x is pretty rough
# Jul 18th 2017, 15:29 jeremyharris just something to keep in mind
# Jul 18th 2017, 15:29 jeremyharris seeds*
# Jul 18th 2017, 15:29 jeremyharris sees are run each time though, they aren’t tracked like migrations
# Jul 18th 2017, 15:28 awi if ($this->Users->delete($user)) { will go to else when i put $event->stopPropagation() ? jeremyharris
# Jul 18th 2017, 15:28 genellern You can, but you should consider seedss
# Jul 18th 2017, 15:28 adriencs can you add data with Migrations ?
# Jul 18th 2017, 15:27 mic_ sorry, but backend is old.
# Jul 18th 2017, 15:27 mic_ frontend is new (BS+jquery), but backend is. The app is relatively large, and upgrade costs are not peanuts, hence consideration.
# Jul 18th 2017, 15:25 cleptric mic_ How big is your app?
# Jul 18th 2017, 15:25 sonu-nk yes.. :)
# Jul 18th 2017, 15:25 mic_ did anybody here upgrade from 1.2/1.3 to 2.x or 3.x? What would be the best strategy? (I want 1.2 -> 1.3 -> 2.10 and then decide whether to axe/start from scratch)
# Jul 18th 2017, 15:24 cleptric Ok, then use the feature I mentioned above your question :slightly_smiling_face:
# Jul 18th 2017, 15:24 sonu-nk suppose i want to shift my project on another host. now i cant install database there. but i want a command which can generate migration files for me.. so that i can run same migration file on another server and my datbase ready
# Jul 18th 2017, 15:24 cleptric If so, use this https://book.cakephp.org/3.0/en/migrations.html#generating-migrations-from-an-existing-database
# Jul 18th 2017, 15:23 cleptric Like an Initial migration?
# Jul 18th 2017, 15:23 cleptric You want a migration that contains the whole database?
# Jul 18th 2017, 15:22 cleptric What do you want to do exactly? :slightly_smiling_face:
# Jul 18th 2017, 15:22 sonu-nk @cleptric https://book.cakephp.org/3.0/en/migrations.html#syntax i also saw that one.. but that one require to add table fields and datatype as command arguments
# Jul 18th 2017, 15:22 jeremyharris though I’m not sure that’d be the best idea :slightly_smiling_face:
# Jul 18th 2017, 15:22 genellern https://book.cakephp.org/3.0/en/migrations.html#dump-generating-a-dump-file-for-the-diff-baking-feature
# Jul 18th 2017, 15:22 jeremyharris I could be wrong, but I think you can also stopPropagation and return a string which would set the “result”
# Jul 18th 2017, 15:21 jeremyharris awi it’s not pretty, but you can add a public property to event, like $event->message = ‘message’; $event->stopPropagation(); or, you can add it to the event data
# Jul 18th 2017, 15:21 cleptric https://book.cakephp.org/3.0/en/migrations.html#creating-migrations
# Jul 18th 2017, 15:20 cleptric One second :slightly_smiling_face:
# Jul 18th 2017, 15:20 sonu-nk @cleptric the same i did not find... i was looking at book...
# Jul 18th 2017, 15:20 cleptric sonu-nk bake offers some stuff
# Jul 18th 2017, 15:19 sonu-nk @genellern i am looking for the command or anything which can help me to generate migration files from my database table
# Jul 18th 2017, 15:18 awi When I stop it, it will fail in the controller?
# Jul 18th 2017, 15:18 awi ok...
# Jul 18th 2017, 15:18 cleptric Sorry, i don’t know any elegant way to behonest
# Jul 18th 2017, 15:18 cleptric Uhhh :thinking_face:
# Jul 18th 2017, 15:17 awi can I somehow set a message when i use stoppropagation?