# |
Aug 8th 2008, 13:55 |
CrazyTux[m] |
s/error/warning/ |
# |
Aug 8th 2008, 13:55 |
mil |
I was editing the wrong file |
# |
Aug 8th 2008, 13:55 |
CrazyTux[m] |
lqdice__, Model "Therapy" is not associated with model "id" is the new error. |
# |
Aug 8th 2008, 13:55 |
mil |
so |
# |
Aug 8th 2008, 13:55 |
mil |
hah |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
oh ok |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
CrazyTux[m]: you are prolly doing 'Therapy.blabla' . just remove 'Therapy' from it |
# |
Aug 8th 2008, 13:54 |
AD7six |
lqdice__: debug your model instance and look for the wity key. |
# |
Aug 8th 2008, 13:54 |
CrazyTux[m] |
lqdice__, yes |
# |
Aug 8th 2008, 13:54 |
teknoid |
lqdice__: if you are not happy with the name of the auto join-table model |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
CrazyTux[m]: containable? |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
seen it somewhere |
# |
Aug 8th 2008, 13:54 |
CrazyTux[m] |
Model "Therapy" is not associated with model "Therapy" <--- why would I get this warning? |
# |
Aug 8th 2008, 13:54 |
lqdice__ |
what's the WITH keyword for.. i never understood it |
# |
Aug 8th 2008, 13:53 |
lqdice__ |
;) |
# |
Aug 8th 2008, 13:53 |
AD7six |
lqdice__: GroupsNode probably |
# |
Aug 8th 2008, 13:53 |
teknoid |
lqdice__: seems about right |
# |
Aug 8th 2008, 13:53 |
lqdice__ |
AD7six: in find('first', array('condition' => array('GroupNodes.write_access' => 1)) ? |
# |
Aug 8th 2008, 13:52 |
AD7six |
agentbob: ;) |
# |
Aug 8th 2008, 13:52 |
AD7six |
lqdice__: by adding a condition to your association |
# |
Aug 8th 2008, 13:52 |
flzz |
jayemef: yea it would be nice |
# |
Aug 8th 2008, 13:52 |
lqdice__ |
if I have group habtm nodes.. and in my groups_nodes table I have another column that is "write_access".. how can I get all nodes for a group but that have write_access = 1 |
# |
Aug 8th 2008, 13:51 |
jayemef |
flzz: not that i know of. i wish there was a sequence name setting in the model |
# |
Aug 8th 2008, 13:51 |
agentbob |
tom_mk: haven't tried to query for not null yet... |
# |
Aug 8th 2008, 13:51 |
linked_ |
TommyO: ok. thanks for clarifying :) |
# |
Aug 8th 2008, 13:51 |
agentbob |
tom_mk: listen to AD7six he knows his shit =) |
# |
Aug 8th 2008, 13:50 |
TommyO |
linked_: it does, except there's little benefit other than the folder per extension imho |
# |
Aug 8th 2008, 13:49 |
AD7six |
tom_mk: see the link I gave you. I don't remember if field => array(x, y, z) generates an IN() in 1.1 if not use an OR |
# |
Aug 8th 2008, 13:49 |
linked_ |
TommyO: does this also mean we can organize our own views and use folders? |
# |
Aug 8th 2008, 13:49 |
tom_mk |
that didn't give me back anything |
# |
Aug 8th 2008, 13:49 |
TommyO |
or .rss or .json etc etc |
# |
Aug 8th 2008, 13:49 |
tom_mk |
agentbob : nope, |
# |
Aug 8th 2008, 13:49 |
agentbob |
AD7six: thanks again |
# |
Aug 8th 2008, 13:48 |
TommyO |
linked_: so the same controller/action can be used for both html and xml with no logic changes, simply by adding .xml to the end of urls |
# |
Aug 8th 2008, 13:48 |
TommyO |
linked_: which is worth looking into. with Router extensions on and RequestHandler loaded, cake will automatically use the Xml layout, views and helper if a request comes in ending with .xml |
# |
Aug 8th 2008, 13:47 |
linked_ |
TommyO: yeah, i mean cake/libs/views/layouts/xml/default.ctp |
# |
Aug 8th 2008, 13:47 |
CrazyTux[m] |
Anyone here to shed some more light on ContainableBehavior class. |
# |
Aug 8th 2008, 13:47 |
agentbob |
AD7six: colours don't break backwards compatability ;) |
# |
Aug 8th 2008, 13:47 |
TommyO |
linked_: because of webservice support |
# |
Aug 8th 2008, 13:46 |
TommyO |
linked_: ^^ |
# |
Aug 8th 2008, 13:46 |
TommyO |
might be a filder with a default.ctp |