Tuesday, April 28, 2009

Plugin model with no table

I'm creating a plugin with a model that doesn't use a table. My model
looks like this:

<pre>
<?php

App::import('vendor', 'adldap');

class AdauthUser extends AdauthAppModel {
var $name = "AdauthUser";
var $useTable = false;
</pre>

In spite of having $useTable = false, I get a missing table error for
my model. Does anybody know what I'm doing wrong?

Error: Database table adauthusers for model Adauthuser was not found.

Thanks!
hydra12
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: