# |
Aug 7th 2008, 09:11 |
FunkyWeasel |
It's odd that the above code worked in 1.1 without issues though, but causes (what I assume to be) an overflow error. |
# |
Aug 7th 2008, 09:10 |
FunkyWeasel |
Aye, we've not done that yet with other relations because we're only just moving to 1.2 now :) |
# |
Aug 7th 2008, 09:10 |
moelee |
that makes the relations explicit |
# |
Aug 7th 2008, 09:10 |
moelee |
and that seems to work successfully because there is a join table involved |
# |
Aug 7th 2008, 09:09 |
moelee |
i have done recursive habtm |
# |
Aug 7th 2008, 09:09 |
moelee |
i've never tried it |
# |
Aug 7th 2008, 09:09 |
FunkyWeasel |
E.g. In Category model: var $belongsTo = array("Parent" => array('className' => 'Category','foreignKey' => 'parent')); |
# |
Aug 7th 2008, 09:09 |
moelee |
hm |
# |
Aug 7th 2008, 09:08 |
FunkyWeasel |
Does cakephp 1.2 support recursive model relationships? |
# |
Aug 7th 2008, 09:08 |
moelee |
hah no worries |
# |
Aug 7th 2008, 09:07 |
FunkyWeasel |
It's got a recursive relationship defined, representing a mysql table with hierarchical records. When I don't comment out the relationships the page fails to render or drop any related info in php log, cakephp log or syslog. |
# |
Aug 7th 2008, 09:07 |
moelee |
FunkyWeasel: just say the problem |
# |
Aug 7th 2008, 09:06 |
FunkyWeasel |
I'm currently working on migrating our codebase from cakephp1.1 to cakephp1.2. I've managed to avoid most of the obvious pitfalls (.ctp, App::Import and other hillarity) but I've got something odd happening with one of our models. |
# |
Aug 7th 2008, 09:05 |
moelee |
anyone awake here |
# |
Aug 7th 2008, 09:05 |
FunkyWeasel |
Good afternoon. |
# |
Aug 7th 2008, 08:54 |
pgcd |
there must be a rule collision somewhere, but it's kinda working now |
# |
Aug 7th 2008, 08:52 |
pgcd |
ok, thanks anyway =) |
# |
Aug 7th 2008, 08:52 |
perilousapricot |
pbcd: sorry, budddy |
# |
Aug 7th 2008, 08:52 |
perilousapricot |
pgcd: mmmm, i've not had that happen before |
# |
Aug 7th 2008, 08:52 |
lqdice__ |
because if user has access to some node deep in the tree, he should see all of the parent nodes etc.. |
# |
Aug 7th 2008, 08:51 |
lqdice__ |
TommyO: it seems kind of difficult when you actually do it |
# |
Aug 7th 2008, 08:51 |
pgcd |
perilousapricot: still, there must be something wrong, as i'm getting a ton of css errors (as in declaration dropped) |
# |
Aug 7th 2008, 08:51 |
TommyO |
lqdice__: I haven't, but it should be easy enough to limit on conditions |
# |
Aug 7th 2008, 08:50 |
perilousapricot |
pgcd: IIRC, you don't unless you dont like how it looks by default |
# |
Aug 7th 2008, 08:50 |
lqdice__ |
ever seen anyone do this ? |
# |
Aug 7th 2008, 08:50 |
lqdice__ |
TommyO: have you ever used the tree behavior but limit the items returned by some user access.. basically like I am using the Tree behavior to do a folder like system but i dont want all users to see all folders |
# |
Aug 7th 2008, 08:49 |
pgcd |
perilousapricot: if you've worked with it, maybe you can save me some time - do i have to edit the css? right now it shows the large image at the bottom of the page.. |
# |
Aug 7th 2008, 08:49 |
picca |
Coenraad: And both username and password fields must exist in $this->data to make Auth component hash passwords |
# |
Aug 7th 2008, 08:49 |
Coenraad |
•picca• yea, sounds like a cake-core issue |
# |
Aug 7th 2008, 08:49 |
TommyO |
ACTION looks |
# |
Aug 7th 2008, 08:49 |
TommyO |
much more likely to get help now :) |
# |
Aug 7th 2008, 08:49 |
fourcs |
http://bin.cakephp.org/view/3911123 |
# |
Aug 7th 2008, 08:49 |
Coenraad |
•picca• ah ok.. sucks |
# |
Aug 7th 2008, 08:49 |
picca |
Coenraad: I think it does not accept id field because it is auto_increment |
# |
Aug 7th 2008, 08:48 |
TommyO |
fourcs: if you paste the whole url we'd have something to click rather than the extra work of rebuilding the url |
# |
Aug 7th 2008, 08:48 |
picca |
Coenraad: I know, $this->Auth->fields, but Auth does not accept this field. |
# |
Aug 7th 2008, 08:48 |
fourcs |
Can anyone give me an idea why some radio button code in one view won't work in another view?, url 3911123 |
# |
Aug 7th 2008, 08:47 |
Coenraad |
•picca• yes it is, you can specify the fields yourself |
# |
Aug 7th 2008, 08:47 |
picca |
Is it possible to make Auth component using id as username? |
# |
Aug 7th 2008, 08:46 |
perilousapricot |
just trying to help :) |
# |
Aug 7th 2008, 08:46 |
pgcd |
perilousapricot: thank you anyway - i'm trying to use it right now... |