# |
Apr 24th 2019, 06:17 |
ra7bi |
``` Users -------> UsersPhoto <-------- Photos ``` Like this |
# |
Apr 24th 2019, 06:16 |
ra7bi |
do cake will understand this type of relation or i need to write the code myself |
# |
Apr 24th 2019, 06:15 |
ra7bi |
Hello , i need a help , i've three tables ``` Users , UsersPhotos , Photos ``` i want to insert User data with photos and `UsersPhotos` FYI UsersPhotos have User_id , Photo_id coz it's many to many relation |
# |
Apr 24th 2019, 06:13 |
challgren |
@voycey is right incognito mode |
# |
Apr 24th 2019, 04:04 |
admad |
Thanx! |
# |
Apr 24th 2019, 03:28 |
voycey |
I thought even new windows share the session in modern browsers? I always use Incognito for a second |
# |
Apr 24th 2019, 02:40 |
admad |
ronsavage_: thats not Cake specific, it's just how browsers work. Cookies and thus sessions are shared across tabs. You need to use a new *window* if you want to do another login simultaneously |
# |
Apr 24th 2019, 01:05 |
ronsavage_ |
I'm stuck on Cake 2.10.10. My users want to log on to the app using 2 browser tabs simultaneously, but Cake (I assume) assigns these 2 logins to the same session. I'm using tasktimer to manage timeouts, but am getting random timeouts. Any and all suggestions welcome. |
# |
Apr 23rd 2019, 22:01 |
noel |
Is this some kind of convention that I’m missing or do I need to register an autoload? |
# |
Apr 23rd 2019, 22:01 |
slackebot |
widget. |
# |
Apr 23rd 2019, 22:01 |
noel |
I can’t figure out how to get hold of the widget. I’ve tried this: ``` $this->loadHelper('QuasarAdmin.QuasarForm', [ 'widgets' => ['text' => ['Cake\View\Widget\QuasarBasic']], ]); ``` and this ``` $this->loadHelper('QuasarAdmin.QuasarForm', [ 'widgets' => ['text' => ['\QuasarAdmin\View\widgetQuasarBasic']], ]); ``` this latter actually reflects the path to the widget.. but it can’t seem to locate the |
# |
Apr 23rd 2019, 21:58 |
noel |
Hi all. I’m trying to figure out how to create and use a Widget within a Plugin. All the examples here seem to make use of Widgets defined in the app rather than defined in the Plugin: https://book.cakephp.org/3.0/en/views/helpers/form.html#using-widgets |
# |
Apr 23rd 2019, 20:58 |
hollistergraham123 |
Ok cool. Thanks |
# |
Apr 23rd 2019, 20:49 |
ricksaccous |
wherever you're developing |
# |
Apr 23rd 2019, 20:49 |
ricksaccous |
or App\Listeners |
# |
Apr 23rd 2019, 20:49 |
ricksaccous |
i think |
# |
Apr 23rd 2019, 20:49 |
ricksaccous |
and make the namespace Plugin\Listeners; |
# |
Apr 23rd 2019, 20:49 |
ricksaccous |
usually i make a Listeners folder |
# |
Apr 23rd 2019, 20:48 |
ricksaccous |
wherever you want |
# |
Apr 23rd 2019, 20:47 |
hollistergraham123 |
Hey, where in the folder structure should I put event listeners? |
# |
Apr 23rd 2019, 18:51 |
itmpls |
is there a way to dynamically remove validation from an entity's associated model created with newEntity? eg `$userEntity = $this->Staff->newEntity([], ['associated' => 'Users' => ['validate' => false] ]);` I tried $this->Staff->Users->validator()->remove('email'); but in a form for that element, its still required |
# |
Apr 23rd 2019, 18:51 |
beakman |
And actually, I kinda derped that answer inside that GitHub issue now that I re-read it, what I really meant to say is what I just wrote here. Woof. |
# |
Apr 23rd 2019, 18:38 |
beakman |
Let me know if I can help. :slightly_smiling_face: |
# |
Apr 23rd 2019, 18:30 |
beakman |
One thing I left out was, you could always store a hashed value alongside the encrypted value, but again, would only yield you strict equality matches. |
# |
Apr 23rd 2019, 18:29 |
beakman |
Catching up on the discussion, someone else asked about encryption searching too, in this plugin too actually: https://github.com/bcrowe/cakephp-encrypted-type/issues/1 |
# |
Apr 23rd 2019, 18:17 |
beakman |
:O |
# |
Apr 23rd 2019, 17:56 |
challgren |
#226? |
# |
Apr 23rd 2019, 17:55 |
dereuromark |
;) cool. check out my plan on cost per type |
# |
Apr 23rd 2019, 17:52 |
challgren |
@dereuromark what I did for CPU intense jobs was group them together and then run that group worker on a separate machine and/or set higher thresholds. I had one queuetask that would download a 98mb csv file and parse it into cake, cake 2 it took over 2 hours to complete, cake 3 it would take 5 minutes (my guess is due to entity patching and not blindly updating the database with every save operation |
# |
Apr 23rd 2019, 17:49 |
challgren |
@neon1024 I do have a plugin for you https://github.com/bcrowe/cakephp-encrypted-type |
# |
Apr 23rd 2019, 17:25 |
picasso |
im curious what the process is for a new release of phinx to be created? this particular PR is something i need (double precision support for postgres) and has been in cakephp:master for a couple months, but the latest phinx release (0.10.6) is much older than that. https://github.com/cakephp/phinx/pull/1493 |
# |
Apr 23rd 2019, 15:58 |
josbeir |
yeah ur right |
# |
Apr 23rd 2019, 15:57 |
dereuromark |
in the end that would also use server resources, wouldnt it? and as such would also need simular knowledge about the task scoring in terms of capacity usage. |
# |
Apr 23rd 2019, 15:55 |
josbeir |
i would look into amqp (rabbitmq, ..) if resource stuff is getting in the way ? |
# |
Apr 23rd 2019, 15:53 |
josbeir |
sychronous |
# |
Apr 23rd 2019, 15:53 |
josbeir |
so each cron is a worker that runs tasks |
# |
Apr 23rd 2019, 15:52 |
josbeir |
hmm |
# |
Apr 23rd 2019, 15:51 |
dereuromark |
cronjob based (x minutes until max limit reached per server) |
# |
Apr 23rd 2019, 15:51 |
josbeir |
never use the plugin |
# |
Apr 23rd 2019, 15:51 |
josbeir |
(tasks) |
# |
Apr 23rd 2019, 15:51 |
josbeir |
how does cakephp-queue spawn processes ? |