# |
Dec 31st 2018, 05:31 |
NickBusey |
I tried setting `$this->Auth->config('authenticate', ['CakeDC/Users.ApiKey' => ['type' => 'header']]);` in AppController initialize but that returns `Authentication adapter "CakeDC/Users.ApiKey" was not found.` even though I am using apikey |
# |
Dec 31st 2018, 05:31 |
nayakvradhit |
While installing cakephp 2.10 I am getting the error please change the value of 'security.salt' in my config/core.php to a salt value specific to your application.(CORE/Cake/Utility/Debugger.php) Similarly for 'Security.cipherseed' |
# |
Dec 31st 2018, 05:17 |
NickBusey |
err cakedc/auth, you get the idea. |
# |
Dec 31st 2018, 05:13 |
NickBusey |
For foc/auth, here: https://github.com/CakeDC/auth/blob/master/Docs/Documentation/ApiKeyAuthenticate.md#setup it says you can override the default options for ApiKeyAuthenticate by setting a key on $config, where would that be done? |
# |
Dec 31st 2018, 03:12 |
waspinator |
how would I get the $io thing from Cake\Console\ConsoleIo' |
# |
Dec 31st 2018, 00:17 |
rightscoreanalysis |
i feel that |
# |
Dec 31st 2018, 00:16 |
sdevore |
I do like using the matching approach makes the intent clearer to my old brain when I come back |
# |
Dec 31st 2018, 00:16 |
rightscoreanalysis |
should have been start_date <= :slightly_smiling_face: |
# |
Dec 31st 2018, 00:15 |
sdevore |
PEBKAC issues are tough to debug |
# |
Dec 31st 2018, 00:15 |
rightscoreanalysis |
start date >= $from |
# |
Dec 31st 2018, 00:15 |
rightscoreanalysis |
my comparison operator was the wrong way around |
# |
Dec 31st 2018, 00:15 |
rightscoreanalysis |
it's ok - it was error in my logic |
# |
Dec 31st 2018, 00:13 |
sdevore |
This is how I do it |
# |
Dec 31st 2018, 00:13 |
sdevore |
https://book.cakephp.org/3.0/en/orm/query-builder.html#filtering-by-associated-data |
# |
Dec 31st 2018, 00:04 |
rightscoreanalysis |
I tried left and inner joins |
# |
Dec 31st 2018, 00:04 |
rightscoreanalysis |
as if the join isn't filtering |
# |
Dec 31st 2018, 00:04 |
rightscoreanalysis |
the count on the result is always the total number of all Poperties |
# |
Dec 31st 2018, 00:03 |
rightscoreanalysis |
what am I doing wrong |
# |
Dec 31st 2018, 00:03 |
rightscoreanalysis |
even when I use join conditions that do not match I am getting results when I should be getting 0 |
# |
Dec 31st 2018, 00:03 |
rightscoreanalysis |
i have Properties model and PropertyPeriods, I am queryinging Properties and joining on PropertyPeriods |
# |
Dec 30th 2018, 21:05 |
sdevore |
I would rename the old ones and rebake and then merge them (maybe by hand). But to be honest mostly I just manually update them, but I’ve been doing this stuff for a really long time on and off… |
# |
Dec 30th 2018, 20:17 |
tomas.saghy |
I see I need to check 4.x branch :slightly_smiling_face: |
# |
Dec 30th 2018, 20:16 |
tomas.saghy |
thanks for the example for `allowEmptyString` |
# |
Dec 30th 2018, 19:24 |
dereuromark |
check the wiki page |
# |
Dec 30th 2018, 19:24 |
dereuromark |
not really |
# |
Dec 30th 2018, 19:21 |
k4t |
will we get any big change in ORM in Cake 4.0? |
# |
Dec 30th 2018, 19:07 |
k4t |
fair enough |
# |
Dec 30th 2018, 18:02 |
dereuromark |
sry, i dont do json without ext |
# |
Dec 30th 2018, 17:56 |
k4t |
gi @dereuromark could you please check this? https://gist.github.com/K4T/1a2972e2e93fa1bb542a63a683675a26 I am using CRUD plugin and I would like to have urls without .json extension to work exactly like urls with .json extension (e.g. /api/v1/users/2 should gave me the same respone as /api/v1/users/2.json). In attached GIST you will find my current code and how current responses looks now. |
# |
Dec 30th 2018, 17:18 |
k4t |
you can not rebake them again as you lost your entity/table modifications |
# |
Dec 30th 2018, 17:18 |
k4t |
to reflect new database tables structure? |
# |
Dec 30th 2018, 17:17 |
k4t |
do you update them manually? |
# |
Dec 30th 2018, 17:17 |
k4t |
what with old baked models now? |
# |
Dec 30th 2018, 17:17 |
k4t |
how do you handle follwing scenario: you have some tables in db, u baked models based on current tables structure. Now you added to the database tables some new columns, removed old ones etc |
# |
Dec 30th 2018, 17:16 |
k4t |
hi guys |
# |
Dec 30th 2018, 14:34 |
challgren |
Can you gist the structure for accounts and accounting_records please |
# |
Dec 30th 2018, 14:32 |
challgren |
Now that I’m reading what your trying to accomplish |
# |
Dec 30th 2018, 14:32 |
challgren |
I think your query might be a bit overkill |
# |
Dec 30th 2018, 14:31 |
kitcat711 |
got it in debugkit I think |
# |
Dec 30th 2018, 14:28 |
challgren |
https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#debugging-queries-and-resultsets the debug should be outputting the bound parameters and its not |
# |
Dec 30th 2018, 14:27 |
kitcat711 |
yes |