# |
Sep 11th 2009, 10:22 |
nnc |
Problem with query is that it just returns empty array for insert queries |
# |
Sep 11th 2009, 10:21 |
tPl0ch |
crayfishfunk: automatic update of links when changing routes |
# |
Sep 11th 2009, 10:21 |
nnc |
Is there any other method (beside query) that can be used in a model to insert data with custom SQL? |
# |
Sep 11th 2009, 10:21 |
nnc |
Hi all |
# |
Sep 11th 2009, 10:20 |
jessica-m |
what binding do i need to modify to make comments.id be comments.user_id |
# |
Sep 11th 2009, 10:17 |
jperras |
crayfishuk: reverse routing |
# |
Sep 11th 2009, 10:17 |
jessica-m |
if you were to change routing, it would map the link accordingly |
# |
Sep 11th 2009, 10:16 |
jessica-m |
routing? |
# |
Sep 11th 2009, 10:16 |
crayfishuk |
I know that the 'proper' way of specifying a controller/action is array(controller=>xxx,action=>yyy) --- but what are the advantages of that over '/controller/action'....? |
# |
Sep 11th 2009, 10:09 |
jessica-m |
when i add the alias, it tells me that the table 'Notes2' doesnt exist |
# |
Sep 11th 2009, 10:09 |
jessica-m |
LEFT JOIN `notes` AS `Note` ON (`Note`.`id` = `Comment`.`id`) |
# |
Sep 11th 2009, 10:06 |
U|zzz |
can someone tell me why the variables i pass into my plugin.helper come out as the names of the variables rather than the actual values? http://pastebin.com/m592c89cb |
# |
Sep 11th 2009, 10:04 |
jessica-m |
( |
# |
Sep 11th 2009, 10:01 |
seamaster |
i trie d with bind and does not work... |
# |
Sep 11th 2009, 10:01 |
seamaster |
how can i paginate the data from 3 tables ,only 2 ofthem have associative models? |
# |
Sep 11th 2009, 10:01 |
seamaster |
hi guys |
# |
Sep 11th 2009, 10:00 |
jessica-m |
i mean, the query is fine except for it trying to join on the wrong field |
# |
Sep 11th 2009, 09:59 |
markstory |
look at the sql you're getting. |
# |
Sep 11th 2009, 09:59 |
markstory |
well then your bind is wrong too. |
# |
Sep 11th 2009, 09:59 |
jessica-m |
and I dont want it to go note.id = comment.id, its supposed to be note.id = comment.note_id |
# |
Sep 11th 2009, 09:59 |
jessica-m |
markstory: it gives me an error saying that table note2 doesnt exist |
# |
Sep 11th 2009, 09:58 |
FunkyWeasel |
Ah, nm - got it. Cause: Subscription was the extension of another model which had the containable behavior set up - the attribute was not inherited. |
# |
Sep 11th 2009, 09:58 |
markstory |
just inline |
# |
Sep 11th 2009, 09:58 |
crayfishuk |
Is there a way to include a patch /correction in a ticket? or should I just include it in the text... |
# |
Sep 11th 2009, 09:57 |
markstory |
also its wierd that you want the condition to be Note.id = Comment.id |
# |
Sep 11th 2009, 09:56 |
markstory |
like I said, just type it in. |
# |
Sep 11th 2009, 09:56 |
markstory |
hasOne => array('Note2' => array(...) |
# |
Sep 11th 2009, 09:56 |
markstory |
? |
# |
Sep 11th 2009, 09:56 |
jessica-m |
yeah how do i do that? |
# |
Sep 11th 2009, 09:56 |
markstory |
that might be the issue too. |
# |
Sep 11th 2009, 09:56 |
markstory |
jessica-m: try giving them different aliases. |
# |
Sep 11th 2009, 09:55 |
TehTreag |
markstory: I guess with containable, I hadn't noticed that behavior with un/bindModel. |
# |
Sep 11th 2009, 09:55 |
SimoBru |
Folks, is there a specific reason why AfterFind is called from dbo_source? |
# |
Sep 11th 2009, 09:55 |
jessica-m |
adding false didnt do anything |
# |
Sep 11th 2009, 09:54 |
FunkyWeasel |
Subscription belongsTo User which belongsTo Contact. I am trying to use a containable field in a find to get Subscription, User and Contact data back in the result. Is "'contain'=>array('User'=>array('Contact'))" the correct parameter to use? I only get User and Subscription information back. |
# |
Sep 11th 2009, 09:53 |
jessica-m |
hmm |
# |
Sep 11th 2009, 09:53 |
markstory |
well if you have a way to reproduce that isn't a tar file and think its a bug open a ticket. |
# |
Sep 11th 2009, 09:52 |
crayfishuk |
beforeRedirects throws away the $url param - because I have a Component which uses RequestHandler. |
# |
Sep 11th 2009, 09:52 |
markstory |
jessica-m: bindModel(); unbindModel(... , false); |
# |
Sep 11th 2009, 09:52 |
markstory |
crayfishuk: is it converting your redirects into requestaction? |
# |
Sep 11th 2009, 09:51 |
crayfishuk |
I think I've found a bug in controller.php.... To do with beforeRedirect and RequestHandlerComponent... it's taken me all day - and I'm convinced it's a bug... |