# |
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 |
# |
Jun 21st 2018, 15:27 |
flavius |
looks like cakephp tests are also failing since the update -- https://travis-ci.org/cakephp/cakephp/jobs/394841488 |
# |
Jun 21st 2018, 15:25 |
josbeir |
is mod_php still used these days? :S |
# |
Jun 21st 2018, 15:25 |
josbeir |
(as it should) |
# |
Jun 21st 2018, 15:25 |
josbeir |
or fpm log if you use fpm :P |
# |
Jun 21st 2018, 15:25 |
itmpls |
or wherever your distro has it |
# |
Jun 21st 2018, 15:25 |
clementcrown |
ok, let me check |
# |
Jun 21st 2018, 15:24 |
itmpls |
in /var/log/apache2/error.log |
# |
Jun 21st 2018, 15:24 |
josbeir |
@flavius not sure, that if you change the date in one testnow object that it will be persistated in following calls to that method |
# |
Jun 21st 2018, 15:24 |
itmpls |
besides site one |