Log message #3881424

# At Username Text
# May 27th 2016, 10:18 veganista Anyway of automatically getting flash message serialised when requesting json?
# May 27th 2016, 10:09 ionas shouldnâ??t it filter everything?
# May 27th 2016, 10:07 spriz Hmm, is it correctly understood that thereâ??s no default support for bulk edit with just PUTâ??ing an array rather than one json object with CRUD?
# May 27th 2016, 10:02 Neon1024x Worth reading the Phinx docs too imho
# May 27th 2016, 09:59 bernat1 oh, I was looking at the bake pages.
# May 27th 2016, 09:59 TheMiller I think working with migration-diffs is the most easiest way
# May 27th 2016, 09:58 TheMiller http://book.cakephp.org/3.0/en/migrations.html#generating-a-diff-between-two-database-states
# May 27th 2016, 09:58 TheMiller The in the cookbook
# May 27th 2016, 09:58 bernat1 is there any docs to baking migrations, I didn't even knew that existed.
# May 27th 2016, 09:58 TheMiller Thanks@all!
# May 27th 2016, 09:57 Neon1024x D
# May 27th 2016, 09:57 TheMiller That was the Problem. Wow, everything has been created.
# May 27th 2016, 09:57 TheMiller bin/cake bake migration My-Migration
# May 27th 2016, 09:57 TheMiller ah stop. sry, my fault
# May 27th 2016, 09:57 Neon1024x bin/cake bake migration MyMigration
# May 27th 2016, 09:57 Neon1024x So you're running something like
# May 27th 2016, 09:57 TheMiller Which classname?
# May 27th 2016, 09:56 TheMiller ok that solved the problem, but now diff says: Your migrations history is empty and you do not have any migrations files. Falling back to baking a snapshot... Error: The className is not correct. The className can only contain "A-Z" and "0-9".
# May 27th 2016, 09:56 Neon1024x Perhaps its just that you have migrations listed in your phinxlog table which don't exist in config/Migrations
# May 27th 2016, 09:55 Neon1024x You don't need a migration snapshot, but it's handy if you want to recreate the whole db schema
# May 27th 2016, 09:55 TheMiller yes sorry ;)
# May 27th 2016, 09:55 hmic truncate, yes.
# May 27th 2016, 09:54 TheMiller may I flush the phinx-tables?
# May 27th 2016, 09:54 Neon1024x Odd, I've never seen that error before
# May 27th 2016, 09:54 fquffio Oh, then you must `bin/cake bake migration_snapshot initial` first. :slightly_smiling_face:
# May 27th 2016, 09:54 TheMiller yes.
# May 27th 2016, 09:54 bernat1 hmmm
# May 27th 2016, 09:54 Neon1024x Using bin/cake bake migration right?
# May 27th 2016, 09:54 bernat1 how do you make a diff?
# May 27th 2016, 09:54 TheMiller There are no available migrations. Try creating one using the create command.
# May 27th 2016, 09:53 TheMiller Thanks @all so far. migrations status says - nothing to do
# May 27th 2016, 09:53 Neon1024x TheMiller, You might want to bake a migration snapshot, or try bin/cake migrations status
# May 27th 2016, 09:52 bernat1 TheMiller: look for a phinxlog table
# May 27th 2016, 09:52 fquffio TheMiller: I'm not sure, but probably `bin/cake migrations mark_migrated` is what you're looking for.
# May 27th 2016, 09:52 TheMiller 3.2.9
# May 27th 2016, 09:52 Neon1024x TheMiller, What version of cake?
# May 27th 2016, 09:52 bernat1 thanks @fquffio
# May 27th 2016, 09:51 bernat1 I'm looking at core behaviors and I wondered if $this->_table was the correct way to use it in plugins. It seems so. Thanks.
# May 27th 2016, 09:51 fquffio bernat1: You might take a look at `TranslateBehavior`: it adds some associations on-the-fly to deal with translated fields (https://github.com/cakephp/cakephp/blob/master/src/ORM/Behavior/TranslateBehavior.php)
# May 27th 2016, 09:51 Neon1024x dariolap, I mean if you're against glob try this , http://book.cakephp.org/3.0/en/core-libraries/file-folder.html
# May 27th 2016, 09:51 dariolap Neon1024x, ok i use it! if there was a cakephp method, I would rather use it