# |
May 27th 2016, 07:14 |
unholyknight |
two behaviors that is, not two events |
# |
May 27th 2016, 07:14 |
unholyknight |
In what order are behaviors run? Are they run in the order that they are assigned to a table? I have two events that need to run on beforeRules but they need to run in a specific order |
# |
May 27th 2016, 07:14 |
spriz |
neon1024: are you around? :) |
# |
May 27th 2016, 07:12 |
voycey |
5pm now |
# |
May 27th 2016, 07:10 |
okatsuralau |
In my tests, only the $this->Controller->request->session()->write() actually persist to database, but I need to get the sessions of the logged in users |
# |
May 27th 2016, 07:04 |
okatsuralau |
Hi, someone knows how to do a IntegrationTestCase to the $this->Auth->setUser() method using database session? |
# |
May 27th 2016, 06:55 |
unorthodox |
What time is it there if i may ask? |
# |
May 27th 2016, 06:55 |
unorthodox |
Oo |
# |
May 27th 2016, 06:55 |
voycey |
I need wine |
# |
May 27th 2016, 06:49 |
aro |
i need sleep |
# |
May 27th 2016, 06:48 |
aro |
doof |
# |
May 27th 2016, 06:48 |
aro |
$c++ wasnt there |
# |
May 27th 2016, 06:48 |
aro |
doh |
# |
May 27th 2016, 06:47 |
aro |
its partially working now, but its only saving one of the relations |
# |
May 27th 2016, 06:46 |
voycey |
its eager loaded in a loop |
# |
May 27th 2016, 06:46 |
voycey |
it should be fine then |
# |
May 27th 2016, 06:46 |
aro |
ti is |
# |
May 27th 2016, 06:46 |
voycey |
and its an entity? |
# |
May 27th 2016, 06:45 |
aro |
yeah |
# |
May 27th 2016, 06:44 |
voycey |
is $image set? |
# |
May 27th 2016, 06:44 |
voycey |
$image->id should be interpolated without curly brackets |
# |
May 27th 2016, 06:42 |
LckyBy517 |
stupid webstockets stuff kicked my butt |
# |
May 27th 2016, 06:42 |
aro |
or can i use the image id? |
# |
May 27th 2016, 06:42 |
LckyBy517 |
grrr, well i guess this is where i call it a night |
# |
May 27th 2016, 06:42 |
aro |
in media_library.0.title |
# |
May 27th 2016, 06:42 |
aro |
for the $image->id value |
# |
May 27th 2016, 06:42 |
aro |
or do i need to use a loop from 0 |
# |
May 27th 2016, 06:42 |
aro |
is that right? |
# |
May 27th 2016, 06:42 |
aro |
<?= $this->Form->input("media_library.{$image->id}.title", ['placeholder' => 'Image Title', 'class' => 'form-control']); ?> |
# |
May 27th 2016, 06:41 |
aro |
gah |
# |
May 27th 2016, 06:41 |
aro |
its not prepopulating my form either |
# |
May 27th 2016, 06:41 |
aro |
no |
# |
May 27th 2016, 06:37 |
voycey |
Is that not it? |
# |
May 27th 2016, 06:37 |
aro |
i know what oyu meant |
# |
May 27th 2016, 06:37 |
aro |
ya |
# |
May 27th 2016, 06:37 |
voycey |
]; |
# |
May 27th 2016, 06:37 |
voycey |
'id' => false, |
# |
May 27th 2016, 06:37 |
voycey |
'*' => true, |
# |
May 27th 2016, 06:37 |
voycey |
protected $_accessible = [ |
# |
May 27th 2016, 06:36 |
voycey |
accessible i mena |
# |
May 27th 2016, 06:36 |
aro |
no its set to visible |