# |
Sep 23rd 2011, 13:21 |
bhp |
I'll hang in here for a bit more |
# |
Sep 23rd 2011, 13:21 |
bhp |
Thanks a million Dakota |
# |
Sep 23rd 2011, 13:21 |
dakota |
robsdonkarls: can you add the line you use to include the component, and also the stack trace for the warning |
# |
Sep 23rd 2011, 13:21 |
bhp |
â?? Okayâ?¦ Greatâ?¦ So then now I am doing something wrongâ?¦ Which is a lot more comforting than knowing it is just not working as expected ;o] |
# |
Sep 23rd 2011, 13:21 |
bhp |
When I save all then, I should be good, right? |
# |
Sep 23rd 2011, 13:21 |
dakota |
bhp: yup |
# |
Sep 23rd 2011, 13:20 |
bhp |
Yeah so that would be: Property hasMany PropertyProperties, PropertiesProperty belongsTo Property â?? right? |
# |
Sep 23rd 2011, 13:20 |
robsdonkarls |
dakota: http://bin.cakephp.org/view/2006603713 |
# |
Sep 23rd 2011, 13:19 |
dakota |
bhp: with a saveAll, that would (iirc) |
# |
Sep 23rd 2011, 13:19 |
bhp |
I must be doing something wrong in that sense than |
# |
Sep 23rd 2011, 13:19 |
bhp |
Dakota; yeah! But why doesn't that work either? ;o] |
# |
Sep 23rd 2011, 13:18 |
dakota |
~tell robsdonkarls about bin |
# |
Sep 23rd 2011, 13:18 |
robsdonkarls |
thats it |
# |
Sep 23rd 2011, 13:18 |
robsdonkarls |
but i have the method startup implemented on my component |
# |
Sep 23rd 2011, 13:18 |
robsdonkarls |
dakota: im sry man, cant be more clear, what i said was i m getting this warning -> call_user_func_array() expects parameter 1 to be a valid callback, class 'AclManagerComponent' does not have a method 'startup' |
# |
Sep 23rd 2011, 13:18 |
bhp |
;o] |
# |
Sep 23rd 2011, 13:18 |
bhp |
I really need to get ahead with this. Perfectionism is my problem o] |
# |
Sep 23rd 2011, 13:18 |
dakota |
~tell bhp about habtm-alternative |
# |
Sep 23rd 2011, 13:17 |
dakota |
bhp: don't use habtm :) |
# |
Sep 23rd 2011, 13:17 |
bhp |
Any nasty hacks, meantime? |
# |
Sep 23rd 2011, 13:17 |
bhp |
I expect, in a month or 2, 3 I will be able to help you out |
# |
Sep 23rd 2011, 13:16 |
bhp |
But when I have time left (HAHA), I will ;o] |
# |
Sep 23rd 2011, 13:16 |
dakota |
robsdonkarls: so, you ask for help? And when somebody asks for more information so that they can help you, you decide that you don't need help anymore :/ |
# |
Sep 23rd 2011, 13:16 |
bhp |
Which is quite fun already |
# |
Sep 23rd 2011, 13:16 |
bhp |
I am writing a DagBehavior |
# |
Sep 23rd 2011, 13:16 |
bhp |
Hahahaha |
# |
Sep 23rd 2011, 13:16 |
ADmad |
bhp: we are waiting for someone smart enough like you to implemment it |
# |
Sep 23rd 2011, 13:15 |
dakota |
bhp: performance |
# |
Sep 23rd 2011, 13:15 |
dakota |
Then cake won't run it in the second case. HABTM saves don't run callbacks on the join model |
# |
Sep 23rd 2011, 13:15 |
bhp |
;o] |
# |
Sep 23rd 2011, 13:15 |
bhp |
and why not? |
# |
Sep 23rd 2011, 13:15 |
ADmad |
bhp: its because cake does not run behavior callbacks on associated models |
# |
Sep 23rd 2011, 13:15 |
robsdonkarls |
ADmad: nm man, ill figure this out by myself |
# |
Sep 23rd 2011, 13:15 |
bhp |
it is loaded setup is called (working with 2.0-rc1) |
# |
Sep 23rd 2011, 13:15 |
bhp |
correct |
# |
Sep 23rd 2011, 13:15 |
dakota |
bhp: Is the behaviour attached to PropertiesProperty? |
# |
Sep 23rd 2011, 13:14 |
bhp |
â?? my behavior's "beforeSave" is not invoked in the second case. |
# |
Sep 23rd 2011, 13:13 |
bhp |
;o] |
# |
Sep 23rd 2011, 13:13 |
bhp |
WHY?! |
# |
Sep 23rd 2011, 13:13 |
bhp |
However, this all works correctly when I PropertiesProperty->save(); but not when I Property->saveAll(); |
# |
Sep 23rd 2011, 13:12 |
ADmad |
robsdonkarls: am I to use my psychic powers to know what your plugin is and what you have coded in your component? |