Log message #1033142

# At Username Text
# Sep 12th 2009, 13:01 pearcec sky_l3ppard: hmm I wonder why the find worked.
# Sep 12th 2009, 13:00 sky_l3ppard if you did not named it Categories in the model
# Sep 12th 2009, 13:00 sky_l3ppard it should be Category
# Sep 12th 2009, 13:00 pearcec sky_l3ppard: yep
# Sep 12th 2009, 13:00 sky_l3ppard Categories is your model?
# Sep 12th 2009, 12:59 pearcec just want to call the recover from the shell and it isn't there.
# Sep 12th 2009, 12:59 pearcec It works find I have loaded other objects into it.
# Sep 12th 2009, 12:59 pearcec I am using tree.
# Sep 12th 2009, 12:59 pearcec sky_l3ppard: I called this $r=$this->Categories->Behaviors->attached(); and it is empty
# Sep 12th 2009, 12:59 sky_l3ppard your behavior.php is in /app/model/behaviors/ ?
# Sep 12th 2009, 12:58 sky_l3ppard pearcec, did you checked for attached behaviors?
# Sep 12th 2009, 12:58 pearcec the model works though I can do a find no problem.
# Sep 12th 2009, 12:57 sky_l3ppard GreaterCoreQuad, http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly
# Sep 12th 2009, 12:57 pearcec jrod: yea
# Sep 12th 2009, 12:57 GreaterCoreQuad sky_l3ppard: i'm still quite lost, any online literature i can turn to?
# Sep 12th 2009, 12:56 sky_l3ppard it should be if it is located in one of behaviors paths
# Sep 12th 2009, 12:56 jrod you mean actsas ?
# Sep 12th 2009, 12:55 pearcec on my Model. But the behavior doesn't seem to be loaded.
# Sep 12th 2009, 12:55 pearcec I call uses
# Sep 12th 2009, 12:55 sky_l3ppard GreaterCoreQuad, bind realation in your other models __construct method
# Sep 12th 2009, 12:54 sky_l3ppard pearcec, to be more accurate - http://book.cakephp.org/view/110/Creating-Shells-Tasks
# Sep 12th 2009, 12:53 GreaterCoreQuad how do i get cakephp to do a relationship between tables from different databases? i am using Model::useDbConfig
# Sep 12th 2009, 12:51 sky_l3ppard yes, in the manual pearcec, your models should be loaded in shell task
# Sep 12th 2009, 12:50 pearcec My model just seems to be empty.
# Sep 12th 2009, 12:50 pearcec sky_l3ppard: is there a good example of how I load model in the shell?
# Sep 12th 2009, 12:49 sky_l3ppard pearcec, it is in $model->Behaviors->attached();
# Sep 12th 2009, 12:48 pearcec Do I have to load it somehow?
# Sep 12th 2009, 12:48 pearcec when I dump the model the actAs is not being set.
# Sep 12th 2009, 12:46 pearcec dogmatic69: http://www.pastie.org/614775
# Sep 12th 2009, 12:46 pearcec where is the paste?
# Sep 12th 2009, 12:45 pearcec ~help
# Sep 12th 2009, 12:45 pearcec ~
# Sep 12th 2009, 12:45 pearcec ~paste
# Sep 12th 2009, 12:45 pearcec ~ pastebin
# Sep 12th 2009, 12:44 pearcec dogmatic69: yes
# Sep 12th 2009, 12:43 dogmatic69 are you trying it via shell
# Sep 12th 2009, 12:42 pearcec yes
# Sep 12th 2009, 12:42 dogmatic69 pearcec: does it have actsAs => 'Tree'
# Sep 12th 2009, 12:42 dogmatic69 charnel: $form->input( 'some_field', array( 'onchange' => 'someFunction();' ) );
# Sep 12th 2009, 12:37 pearcec I load the model and it doesn't seem to have the function available to it.
# Sep 12th 2009, 12:37 pearcec I want to call the Tree->recover function on a Model.