# |
Sep 23rd 2011, 13:45 |
bioiq |
Warning Error: include_once(): Failed opening '/var/www/Config/database.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in [/usr/share/php/cake/lib/Cake/Model/ConnectionManager.php, line 65] |
# |
Sep 23rd 2011, 13:45 |
bioiq |
Warning Error: include_once(/var/www/Config/database.php): failed to open stream: No such file or directory in [/usr/share/php/cake/lib/Cake/Model/ConnectionManager.php, line 65] |
# |
Sep 23rd 2011, 13:45 |
bhp |
better than nothing |
# |
Sep 23rd 2011, 13:45 |
dogmatic69 |
use transactions |
# |
Sep 23rd 2011, 13:44 |
bhp |
but well |
# |
Sep 23rd 2011, 13:44 |
bhp |
bummer |
# |
Sep 23rd 2011, 13:44 |
bhp |
foreach->save() |
# |
Sep 23rd 2011, 13:44 |
dogmatic69 |
ye |
# |
Sep 23rd 2011, 13:44 |
bhp |
Alright, so I got to recurse through my array to individually save them to get this to work. |
# |
Sep 23rd 2011, 13:44 |
dogmatic69 |
habtm is not that great, better the way you have it now |
# |
Sep 23rd 2011, 13:44 |
bhp |
Dakota said it would work when not using HABTM, I hadn't seen your message ADmad... |
# |
Sep 23rd 2011, 13:43 |
dogmatic69 |
!tell bioiq about broken |
# |
Sep 23rd 2011, 13:43 |
dogmatic69 |
still asking the same thing? |
# |
Sep 23rd 2011, 13:43 |
bioiq |
ok, command line almost works, but it give me an error when i try 'cake bake all' |
# |
Sep 23rd 2011, 13:43 |
dogmatic69 |
<ADmad> bhp: its because cake does not run behavior callbacks on associated models |
# |
Sep 23rd 2011, 13:43 |
ADmad |
bhp: juggling your associations won't change the fact i stated earlier |
# |
Sep 23rd 2011, 13:42 |
bhp |
sorry |
# |
Sep 23rd 2011, 13:42 |
bhp |
;o] |
# |
Sep 23rd 2011, 13:42 |
dogmatic69 |
69 |
# |
Sep 23rd 2011, 13:42 |
bhp |
dogmatic |
# |
Sep 23rd 2011, 13:42 |
dogmatic69 |
cake wont do callbacks recursively |
# |
Sep 23rd 2011, 13:41 |
bhp |
However in beforeSave($Model) { echo "beforeSave was called"}. This is not shown, nor in the way you say it should. |
# |
Sep 23rd 2011, 13:41 |
bhp |
dakota; in DagBehavior.php; I've got, under setup($Model, $config){ echo 'DAG LOADED';}. And that is shown when I "saveAll". |
# |
Sep 23rd 2011, 13:39 |
dogmatic69 |
o/ |
# |
Sep 23rd 2011, 13:39 |
bhp |
morning! |
# |
Sep 23rd 2011, 13:39 |
destinydriven |
morning TooMuchCaffeine |
# |
Sep 23rd 2011, 13:39 |
TooMuchCaffeine |
morning |
# |
Sep 23rd 2011, 13:37 |
bhp |
Could be, of course |
# |
Sep 23rd 2011, 13:37 |
bhp |
Ah, I run into a RC bug? |
# |
Sep 23rd 2011, 13:37 |
dakota |
Looks fine to me. But something could be missing, don't know, haven't really used 2.0 much |
# |
Sep 23rd 2011, 13:33 |
bhp |
Of course there is more code, but this should suffice, right? |
# |
Sep 23rd 2011, 13:33 |
bhp |
dakota: http://bin.cakephp.org/view/1067295909 |
# |
Sep 23rd 2011, 13:30 |
robsdonkarls |
thank you very much |
# |
Sep 23rd 2011, 13:30 |
robsdonkarls |
dakota and rchavik , i just figured it out, was my plugin path was wrong, i was doing $components = array('Acl.AclReflector' ) and it should be 'AclManager.AclReflector' |
# |
Sep 23rd 2011, 13:28 |
rchavik |
robsdonkarls, this is for 1.3 or 2.0 ? for 1.3, components extends Object iirc |
# |
Sep 23rd 2011, 13:27 |
bhp |
thanks |
# |
Sep 23rd 2011, 13:26 |
dakota |
~tell bhp about bin |
# |
Sep 23rd 2011, 13:26 |
bhp |
dakota; I don't get itâ?¦ Where's the link to cake's pastebin agian? |
# |
Sep 23rd 2011, 13:26 |
bhp |
dakota; Still not working |
# |
Sep 23rd 2011, 13:25 |
destinydriven |
ADmad, ahh . . thanks again |
# |
Sep 23rd 2011, 13:25 |
ADmad |
destinydriven: use '/' . $this->params['url']['url'] instead |