# |
Jan 2nd 2019, 09:24 |
dereuromark |
please dont^^ It should have one final withData() call if possible :slightly_smiling_face: every with is very expensive using immutable (fresh object creation) |
# |
Jan 2nd 2019, 09:14 |
challgren |
I was being overly paranoid |
# |
Jan 2nd 2019, 09:13 |
challgren |
Flatten the getData() then iterate through it and set the $request->withData($k, $v) |
# |
Jan 2nd 2019, 09:12 |
challgren |
Yeah I see that I think I got it figured out |
# |
Jan 2nd 2019, 09:05 |
dereuromark |
shouldnt matter though using arrayaccess and writing it back to it. or converting to array to write back. |
# |
Jan 2nd 2019, 08:41 |
challgren |
Not sure why it would return an object |
# |
Jan 2nd 2019, 08:41 |
dereuromark |
interesting |
# |
Jan 2nd 2019, 08:40 |
challgren |
But should check to make sure ArrayObject because getData() can return empty array or object |
# |
Jan 2nd 2019, 08:39 |
challgren |
Yep |
# |
Jan 2nd 2019, 08:38 |
dereuromark |
withData() |
# |
Jan 2nd 2019, 08:37 |
challgren |
Hmmm now Im thinking maybe not |
# |
Jan 2nd 2019, 08:37 |
challgren |
available |
# |
Jan 2nd 2019, 08:36 |
challgren |
Without knowing the indexes |
# |
Jan 2nd 2019, 08:36 |
challgren |
Can’t gain full access to the data array |
# |
Jan 2nd 2019, 08:36 |
dereuromark |
sure? |
# |
Jan 2nd 2019, 08:33 |
challgren |
@dereuromark I dont think there’s a good way to trim the data on the controller side. |
# |
Jan 2nd 2019, 08:22 |
dereuromark |
sure, should have examples in the doc |
# |
Jan 2nd 2019, 08:21 |
mh |
hi @dereuromark i found your cakephp-geo plugin. Can i use this to use user inputs (zip and country) to do an area search? for example i want to find entries by typing a zip and a distance around it. |
# |
Jan 2nd 2019, 08:18 |
mh |
hey there |
# |
Jan 2nd 2019, 04:12 |
challgren |
Damm ok |
# |
Jan 2nd 2019, 04:12 |
NickBusey |
without the `articles` bit (should build for all tables that way), yea |
# |
Jan 2nd 2019, 04:11 |
challgren |
You tried `bin/cake schema_cache build --connection default articles` |
# |
Jan 2nd 2019, 04:10 |
NickBusey |
N/p, thanks for the try |
# |
Jan 2nd 2019, 04:10 |
challgren |
Not sure then? Sorry cant help |
# |
Jan 2nd 2019, 04:10 |
NickBusey |
no change |
# |
Jan 2nd 2019, 04:09 |
challgren |
clear your cache? |
# |
Jan 2nd 2019, 04:09 |
NickBusey |
Trying to use sqlite for the db, getting ` Cannot describe users. It has 0 columns. ` even though the table exists and has all the columns it should |
# |
Jan 2nd 2019, 02:36 |
waspinator |
just wanted to say that @ndm is an absolute legend. their contributions on stackoverflow are a life saver. |
# |
Jan 1st 2019, 23:19 |
waspinator |
are virtual fields from associations a thing? |
# |
Jan 1st 2019, 19:08 |
mocelle |
I glad to help you |
# |
Jan 1st 2019, 19:03 |
asdfgh |
thanky hou! |
# |
Jan 1st 2019, 19:03 |
asdfgh |
mocelle awesome! |
# |
Jan 1st 2019, 18:58 |
mocelle |
*are untouched |
# |
Jan 1st 2019, 18:57 |
mocelle |
@asdfgh cake bake models for bake models and cake bake template and yours controller are untached |
# |
Jan 1st 2019, 18:54 |
asdfgh |
i do not need fixtures controllers etc |
# |
Jan 1st 2019, 18:54 |
asdfgh |
guys is there a way to only bake tables? |
# |
Jan 1st 2019, 15:54 |
k4t |
can I nest scop inside prefix? |
# |
Jan 1st 2019, 14:16 |
asdfgh |
--everything will create controller fixtures etc too |
# |
Jan 1st 2019, 14:16 |
asdfgh |
guys is there a way to bake all tables (only) |
# |
Jan 1st 2019, 14:09 |
challgren |
Ok so I think its related to the routes still being loaded via file. |
# |
Jan 1st 2019, 14:06 |
challgren |
Ok got it |