# |
Aug 8th 2008, 01:50 |
pgcd |
you have modelA that needs to self join |
# |
Aug 8th 2008, 01:50 |
pgcd |
i'm not sure i explained myself, but: |
# |
Aug 8th 2008, 01:49 |
mscdex |
hmm |
# |
Aug 8th 2008, 01:48 |
pgcd |
mscdex: you can also try with using an alias for the name of the associated model, maybe |
# |
Aug 8th 2008, 01:46 |
pgcd |
mscdex: i think you can search for something to do with self joins, even though i haven't read anything on the topic yet |
# |
Aug 8th 2008, 01:44 |
mscdex |
hello, where can i find out how to set up a HABTM for a join table that contains two fields that refer to the same model? |
# |
Aug 8th 2008, 01:44 |
pgcd |
ACTION would appreciate any kind of help making the d*mn thing align with the top of the viewport |
# |
Aug 8th 2008, 01:43 |
pgcd |
ACTION is freaking out over lightbox |
# |
Aug 8th 2008, 01:43 |
pgcd |
morning florent |
# |
Aug 8th 2008, 01:42 |
pgcd |
seedbaker: if you use firebug, you can check the response to the ajax request |
# |
Aug 8th 2008, 01:39 |
florent |
guten morgen primeminister |
# |
Aug 8th 2008, 01:38 |
florent |
good morning everyone |
# |
Aug 8th 2008, 01:36 |
seedbaker |
hello, iam using cake and AJAX ... how to get database error with cake...i usually use mysql_error() ... but when i debug, it doesn't show up.. |
# |
Aug 8th 2008, 01:30 |
linked_ |
yes, that's what i did ;) |
# |
Aug 8th 2008, 01:27 |
thestaff |
should be enough |
# |
Aug 8th 2008, 01:27 |
thestaff |
as first param |
# |
Aug 8th 2008, 01:27 |
thestaff |
put jsut : array( 'DATE(date_time_field)' => '2001-01-01') |
# |
Aug 8th 2008, 01:26 |
thestaff |
linked_, no conditions doesn't work like this |
# |
Aug 8th 2008, 01:26 |
linked_ |
thestaff: thanks by the way :) |
# |
Aug 8th 2008, 01:26 |
linked_ |
thestaff: i'll try array 'conditions' => (array( 'DATE(date_time_field)' => '2001-01-01') |
# |
Aug 8th 2008, 01:25 |
thestaff |
findBySql ? |
# |
Aug 8th 2008, 01:24 |
thestaff |
doesn't work for you ? |
# |
Aug 8th 2008, 01:24 |
thestaff |
how about find > |
# |
Aug 8th 2008, 01:23 |
thestaff |
i'm 1.1 :-( |
# |
Aug 8th 2008, 01:23 |
thestaff |
might be |
# |
Aug 8th 2008, 01:23 |
linked_ |
thestaff: isn't it deprecated in 1.2? |
# |
Aug 8th 2008, 01:22 |
linked_ |
gee...the CakeBot knows my response :) |
# |
Aug 8th 2008, 01:21 |
thestaff |
linked_, generateList() ;-) |
# |
Aug 8th 2008, 01:21 |
linked_ |
hi. how can i make the query "WHERE DATE(date_time_field) = 2007-01-01" in find conditions? |
# |
Aug 8th 2008, 01:20 |
pgcd |
i have a wide-ranging question... if all my models have four fields in common (hidden, deleted, visible_from, visible_to), can I add a method to appModel so that they alway get checked? would that be the cake way? |
# |
Aug 8th 2008, 01:19 |
thestaff |
gwoo, how would you do it ? |
# |
Aug 8th 2008, 01:18 |
thestaff |
and I get a sql error |
# |
Aug 8th 2008, 01:17 |
thestaff |
kinda ugly but works |
# |
Aug 8th 2008, 01:17 |
thestaff |
something like this $locations = $this->Item->generateList(null, null, null,'{n}.Item.location', '{n}.Item.location'); |
# |
Aug 8th 2008, 01:17 |
thestaff |
well I've kind figured it out |
# |
Aug 8th 2008, 01:17 |
gwoo |
ok |
# |
Aug 8th 2008, 01:17 |
thestaff |
1.1 |
# |
Aug 8th 2008, 01:17 |
gwoo |
thestaff: are you using 1.2? |
# |
Aug 8th 2008, 01:16 |
pgcd |
ACTION wonders why lightbox screws up in his page |
# |
Aug 8th 2008, 01:11 |
stabb |
ACTION prepares his olympic incubator |
# |
Aug 8th 2008, 01:03 |
thestaff |
but not sure it'd do the job |