# |
Oct 22nd 2009, 07:13 |
dakota |
Wow, my english are bad |
# |
Oct 22nd 2009, 07:13 |
dakota |
otherswise?? |
# |
Oct 22nd 2009, 07:13 |
dakota |
otherswise it would work |
# |
Oct 22nd 2009, 07:13 |
jessica-m |
if i manually set the modified, it is fine |
# |
Oct 22nd 2009, 07:13 |
dakota |
but definately something |
# |
Oct 22nd 2009, 07:13 |
dakota |
not necessarly something in the core. |
# |
Oct 22nd 2009, 07:12 |
jessica-m |
i have not touched the core |
# |
Oct 22nd 2009, 07:12 |
dakota |
mmmm |
# |
Oct 22nd 2009, 07:12 |
dakota |
ACTION thinks something is broken |
# |
Oct 22nd 2009, 07:12 |
jessica-m |
yeah |
# |
Oct 22nd 2009, 07:12 |
dakota |
and it is obviously not set |
# |
Oct 22nd 2009, 07:12 |
dakota |
so, you are certain that it is called 'modified' and that it is a datetime field with default = null |
# |
Oct 22nd 2009, 07:12 |
dakota |
odd |
# |
Oct 22nd 2009, 07:11 |
jessica-m |
that didnt do it |
# |
Oct 22nd 2009, 07:10 |
jessica-m |
ok |
# |
Oct 22nd 2009, 07:10 |
jessica-m |
should i unset it? |
# |
Oct 22nd 2009, 07:10 |
dakota |
unset created as well |
# |
Oct 22nd 2009, 07:10 |
jessica-m |
hmm |
# |
Oct 22nd 2009, 07:10 |
dakota |
wonder if that might cause the problem |
# |
Oct 22nd 2009, 07:10 |
dakota |
[created] => 2009-10-21 11:52:53 |
# |
Oct 22nd 2009, 07:09 |
jessica-m |
http://bin.cakephp.org/view/1298578379 |
# |
Oct 22nd 2009, 07:08 |
jessica-m |
ok |
# |
Oct 22nd 2009, 07:08 |
dakota |
just before the save |
# |
Oct 22nd 2009, 07:07 |
jessica-m |
where do you want me to print this->data |
# |
Oct 22nd 2009, 07:07 |
jessica-m |
hang on |
# |
Oct 22nd 2009, 07:07 |
dakota |
and post it here |
# |
Oct 22nd 2009, 07:07 |
dakota |
can you maybe do a pr($this->data) for us? |
# |
Oct 22nd 2009, 07:07 |
dakota |
then my guess is that modified exists |
# |
Oct 22nd 2009, 07:07 |
jessica-m |
when i create a new one it works fine |
# |
Oct 22nd 2009, 07:07 |
dogmatic69 |
jessica-m: if its not there cake should do it... does it do it when you create a new one? |
# |
Oct 22nd 2009, 07:06 |
dogmatic69 |
just before that |
# |
Oct 22nd 2009, 07:06 |
jessica-m |
i am |
# |
Oct 22nd 2009, 07:06 |
dakota |
cake won't auto update modified if it is set in $this->data |
# |
Oct 22nd 2009, 07:06 |
jessica-m |
if ($this->User->save($this->data) ) |
# |
Oct 22nd 2009, 07:06 |
dakota |
^ that too |
# |
Oct 22nd 2009, 07:06 |
dogmatic69 |
sometimes that helps |
# |
Oct 22nd 2009, 07:06 |
dakota |
or another method? |
# |
Oct 22nd 2009, 07:06 |
dogmatic69 |
jessica-m: unset( modified ) before you save |
# |
Oct 22nd 2009, 07:06 |
dakota |
$this->save |
# |
Oct 22nd 2009, 07:06 |
dakota |
jessica-m: and how are you saving? |
# |
Oct 22nd 2009, 07:05 |
jessica-m |
sure is |