Log message #4153148

# At Username Text
# Jun 22nd 2018, 07:36 tim @ra7bi You need to save your shipment before the shipment_fishes, otherwise it will have no ID and thus can't put that in the pivot table. If you use proper associations and form keys/names, it should all do this for you
# Jun 22nd 2018, 07:35 ra7bi I don't really know
# Jun 22nd 2018, 07:34 birdy247 Is there a cake way to do this
# Jun 22nd 2018, 07:34 ra7bi I need to store shipment_fishes before shipment get stored
# Jun 22nd 2018, 07:34 birdy247 The controller needs to know if a Pen and Ruler was created, or just a Pen
# Jun 22nd 2018, 07:33 birdy247 In a controller, this initiates a save for a Pen, when a Pen is saved, in the afterSave it *might* create a Ruler (depending on the type of Pen)
# Jun 22nd 2018, 07:32 ra7bi So when i open add shipment i will see Shipment details (shipment table) under that User can add different fishes Finally can save the shipment, it will get stored Shipment with related fishes
# Jun 22nd 2018, 07:31 ra7bi In add new shipment I've 2 forms one for shipment details and other for adding fishes the idea is I can add as much as i want of fishes for each shipment
# Jun 22nd 2018, 07:29 tim Is it not stored in the jointable? What code are you using to save it
# Jun 22nd 2018, 07:29 ra7bi Hopefully my question is clear , for more clarification please let me know
# Jun 22nd 2018, 07:28 ra7bi Hello all , I've a case and I don't know how cakephp deals with it I've 3 tables 1: fishes 2: shipments_fishes 3: shipments When creating new shipment i store all fishes for that shipment in shipments_fishes table which contains Shipment id and fishe id The problem is how to get shipment id and still not stored in the DB
# Jun 22nd 2018, 07:22 tim If you explicitly define it as a select, you'd get the same result
# Jun 22nd 2018, 07:22 tim You don't need to, that's just what it uses for guesstimating what type of input it is
# Jun 22nd 2018, 07:17 Magiq here for example
# Jun 22nd 2018, 07:17 Magiq https://api.cakephp.org/3.6/source-class-Cake.View.Helper.FormHelper.html#1366
# Jun 22nd 2018, 07:16 birdy247 Where does it force you?
# Jun 22nd 2018, 07:16 Magiq Why cakephp force to use underscore in column names ?
# Jun 22nd 2018, 07:14 birdy247 Morning
# Jun 22nd 2018, 06:59 magiq__ test
# Jun 22nd 2018, 06:52 magiq__ i'm speaking about columns
# Jun 22nd 2018, 06:52 magiq__ what ?
# Jun 22nd 2018, 06:48 saeideng `$this->setTable('tablename');`
# Jun 22nd 2018, 06:47 saeideng yo can change the name
# Jun 22nd 2018, 06:41 magiq__ Why cakephp forces to use unserscore taming columns in DB ?
# Jun 22nd 2018, 02:29 turkles in 3.6 I am using a association with 'through', how can I contain using data in the join to filter results?
# Jun 21st 2018, 21:31 santiago17 I got in another folder a 3.3 version of the test from the page and it is showing well all the php
# Jun 21st 2018, 21:30 santiago17 could somebody help me to show the project?
# Jun 21st 2018, 21:30 santiago17 Hello, I have a project in cake 2.9.1 I have already placed into the root of the virtual machine and is showing me just the directory. I have installed and set up its DB, gave permissions to write to the folders and subfolders. I have tried everything during the whole day and do not what else to do
# Jun 21st 2018, 18:33 josbeir I will eat that evil root now
# Jun 21st 2018, 18:32 josbeir @itmpls busted :D
# Jun 21st 2018, 18:15 saeideng returns value ( object)
# Jun 21st 2018, 18:14 itmpls thought it was just value
# Jun 21st 2018, 18:14 itmpls that returns both the key and value?
# Jun 21st 2018, 18:13 saeideng use `last()`
# Jun 21st 2018, 18:08 itmpls i think @josbeir is exhibiting premature optimization
# Jun 21st 2018, 18:02 saeideng why not `toArray() ` ?
# Jun 21st 2018, 16:37 josbeir is there a way to get the last key of a Collection (without doing a toArray() and using the php way)
# Jun 21st 2018, 15:49 flavius https://github.com/cakephp/chronos/issues/173
# Jun 21st 2018, 15:39 lorenzo Can you please open a ticket in the cake repo?
# Jun 21st 2018, 15:28 flavius master is still passing because nothing was commited since the chronos update :P
# Jun 21st 2018, 15:27 flavius with the date tests