Plugin Models - Not needed?

2008-04-14 Thread leafspan

Ok, so I've run into an issue that is literally just stupid, and I'm
baffled.

I have a plugin with several controllers and models, fully
operational,
everything is working fine.

All of the models for the plugin are just the basics of defining the
model
class and giving it a name.

But now, I'm trying to setup a HABTM to tie a model to tagging, and
this is
where everything gets weird.

After setting up the HABTM association inside the model needed, I
notice
that the data that is being returned by a findAll(), is the same as it
was
before setting a HABTM.

So I renamed my model file to something else, which should spawn an
error
saying hey idiot, your missing a model for this controller, but this
is
not the case. Even without the model present, it still gives me back
the
same information from findAll() as if the model was still there.

I completely removed my models directory from within the plugin, and
the
plugin seems to be working just fine.

Is this a cakephp bug? What the hell can I do to setup the HABTM for
the
controllers/models within the plugin?

Thanks in advance

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Plugin Models - Not needed?

2008-04-14 Thread Max

Are you setting up HABTM between plugin models and app models? ..just
curious.

On Apr 14, 11:34 pm, leafspan [EMAIL PROTECTED] wrote:
 Ok, so I've run into an issue that is literally just stupid, and I'm
 baffled.

 I have a plugin with several controllers and models, fully
 operational,
 everything is working fine.

 All of the models for the plugin are just the basics of defining the
 model
 class and giving it a name.

 But now, I'm trying to setup a HABTM to tie a model to tagging, and
 this is
 where everything gets weird.

 After setting up the HABTM association inside the model needed, I
 notice
 that the data that is being returned by a findAll(), is the same as it
 was
 before setting a HABTM.

 So I renamed my model file to something else, which should spawn an
 error
 saying hey idiot, your missing a model for this controller, but this
 is
 not the case. Even without the model present, it still gives me back
 the
 same information from findAll() as if the model was still there.

 I completely removed my models directory from within the plugin, and
 the
 plugin seems to be working just fine.

 Is this a cakephp bug? What the hell can I do to setup the HABTM for
 the
 controllers/models within the plugin?

 Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---