On Mon, Jun 15, 2009 at 6:28 AM, VVilku<[email protected]> wrote:
> (..)
>
> But when I try to use it after the import model in to another
> controller, I receives an error.
>
> (..)
> SQL Error: 1054: Unknown column 'User.status' in 'where clause'
>
>
> I understand that the imported model is not somehow related to the
> model of 'User'.
> What can I do? Please :)

Have you tried to add a reference to your model classes
(Memoir and User, I suppose) in the $uses attrib in your
controller?

class YourController extends AppController {

var $uses = array('Memoir', 'User');
// ...and so on


Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to