-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Fagner,
nearly everytime you get an message with "Unknown column " you are trying to use a nonexisten method. Please check this. Then Have you set a specail primary key in your users table and model? In my experience if you don#t have very good reasoins ( e.g. compatibility with another software) it is best to follow the cake naming conventions. At least until you are a bit more experienced. HTH! Calamity Jane Am 15.08.2014 um 16:28 schrieb Fagner jefferson: > how can I delete a user by name or email??? > > I try delete by field 'iduser' of database, but, the cake, show me this > error mensage. > > SQLSTATE[42S22]: Column not found: 1054 Unknown column 'User.id' in 'where > clause' > *SQL Query: *SELECT COUNT(*) AS `count` FROM `vulpes`.`users` AS `User` > WHERE `User`.`id` = '1' > > but the field name not 'id', is 'iduser' > > > > > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlPvtR8ACgkQbOdiIJzHNKF+fwCgloPEGLY5FHbTerRp60NTl47n 5HcAn1qmdzY/hwYWtN6Cf34jxxph2sNY =kpAJ -----END PGP SIGNATURE----- -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
