# |
Dec 3rd 2017, 20:23 |
aro |
i ened to remove the label that encompasses the whole block |
# |
Dec 3rd 2017, 20:23 |
aro |
i have a block of checkboxes set by a multiple=> 'checkbox' |
# |
Dec 3rd 2017, 18:52 |
cpierce |
thanks for letting me rubber duck though |
# |
Dec 3rd 2017, 18:52 |
cpierce |
yeah i had that ... it was cache i guess ... it finally started working without me changing anything |
# |
Dec 3rd 2017, 18:41 |
saeideng |
`use Cake\ORM\TableRegistry;` |
# |
Dec 3rd 2017, 18:40 |
saeideng |
use .... |
# |
Dec 3rd 2017, 18:38 |
cpierce |
I've got my use in there so i'm not sure. |
# |
Dec 3rd 2017, 18:36 |
cpierce |
```Exception: Class 'App\Shell\TableRegistry' not found in [/vagrant/src/Shell/generateShell.php, line 34] ``` |
# |
Dec 3rd 2017, 18:36 |
cpierce |
i'm getting an error that it can't find it in my use. |
# |
Dec 3rd 2017, 18:36 |
saeideng |
yes |
# |
Dec 3rd 2017, 18:33 |
cpierce |
is it possible to use TableRegistry in a shell? |
# |
Dec 3rd 2017, 16:42 |
_biff |
im running my webrtc app.js on node but getting many notfound error per second... |
# |
Dec 3rd 2017, 15:31 |
casmo |
test |
# |
Dec 3rd 2017, 13:15 |
prepender |
I've created a mobile app that stores the user credentials in case the token expires, it auto re-logs them in. But I've recently integrated facebook SSO and I'm wondering what you guys recommend as a mechanism to auto re-log them in because I wont be able to store their password like the regular login. I thought it would be a bad experience re-authenticating them w facebook every time |
# |
Dec 3rd 2017, 09:01 |
saeideng |
validation class, yes |
# |
Dec 3rd 2017, 07:01 |
mazba.cse |
is it possible to create a validation class, like laravel request? |
# |
Dec 2nd 2017, 21:59 |
saeideng |
`c0, :c1, :c2) ` will bind in Pdo driver |
# |
Dec 2nd 2017, 21:58 |
saeideng |
? |
# |
Dec 2nd 2017, 21:58 |
saeideng |
what is your problem obinoob |
# |
Dec 2nd 2017, 21:52 |
obinoob |
|
# |
Dec 2nd 2017, 21:52 |
obinoob |
dereuromark this is whats happening the generated query is inserting a new value in database INSERT INTO `emails` (`address`, `client_id`, `created`) VALUES (:c0, :c1, :c2) |
# |
Dec 2nd 2017, 21:38 |
ludger.a |
What puzzles me is that both the mathing and notMatching parts work if they are alone (matching gives me alle Periods of Competitions the User is interested in; notMatching gives me all Periods the User has not yet participated in), but together the "matching" part seems to get ignored and I the same resulst as if I only had the notMatching part... |
# |
Dec 2nd 2017, 21:35 |
slackebot2 |
period). Now I want to find all Periods, which belong to a Competition the User is interested in, but only these Periods which the User hasn't yet partitipated in. |
# |
Dec 2nd 2017, 21:35 |
ludger.a |
File uploaded https://cakesf.slack.com/files/U89T82T39/F88R3BQJE/-.txt / https://slack-files.com/T053DPNCM-F88R3BQJE-245d06d72b - I am fighting with a relative complicated query. I have 3 models: Users, Competitions and Periods. Uandlt;-belongsTo-andgt;C (meaning, user is interested in the competition) C -hasMany-andgt; P (at these periods one can take part in the competition) and U andlt;-belongsTo-andgt; P (the user has already partitipated at this |
# |
Dec 2nd 2017, 21:26 |
obinoob |
can somebody explain to me what the problem is please? |
# |
Dec 2nd 2017, 21:25 |
saeideng |
@dereuromark you are here |
# |
Dec 2nd 2017, 21:10 |
obinoob |
I'm not getting what the problem is really?!? |
# |
Dec 2nd 2017, 21:08 |
obinoob |
this is the debug of entity before patch and after patch: https://gist.github.com/obinoob/0263a08cb870dec10a902b7c217c1efe |
# |
Dec 2nd 2017, 21:03 |
saeideng |
:+1: |
# |
Dec 2nd 2017, 21:03 |
saeideng |
@dereuromark I think you are right |
# |
Dec 2nd 2017, 20:26 |
obinoob |
hello :) |
# |
Dec 2nd 2017, 20:25 |
saeideng |
hi |
# |
Dec 2nd 2017, 20:24 |
obinoob |
I've debugged the entity and the values are in fact being pulled out of the database... because they are filling the form just fine! The problem is that they are being treated has new registries please take a look at the entity debug https://gist.github.com/obinoob/0263a08cb870dec10a902b7c217c1efe |
# |
Dec 2nd 2017, 20:13 |
obinoob |
dereuromark but you're right emails and phones are not being pull out of the database however contain has emails and phones as conditions?!? |
# |
Dec 2nd 2017, 20:05 |
obinoob |
Another thing I see is that errors is empty but the validator message if firing '=( |
# |
Dec 2nd 2017, 20:04 |
obinoob |
*how entities |
# |
Dec 2nd 2017, 20:03 |
obinoob |
dereuromark yes I see but I don't have that deep understanding of entities work at that level seriously :( I get that the registry is not being pulled out of the database it looks like I'm adding a new registry the strange part is that it's not complaining about Addresses and it surely is at the same level as Phones or Emails... |
# |
Dec 2nd 2017, 19:59 |
dereuromark |
you might not need it, just make sure you pull the related records so patching updates those instead of creating new ones. |
# |
Dec 2nd 2017, 19:58 |
obinoob |
dereuromark I've come across "dirty" but I don't have the slightest idea |
# |
Dec 2nd 2017, 19:57 |
dereuromark |
I did some manual looping for my part to work out: https://pastebin.com/fQv0PSVR - Also the $capability->setDirty('features', true); in my case helped :slightly_smiling_face: |
# |
Dec 2nd 2017, 19:56 |
obinoob |
dereuromark I can't find any documented example ... |