-
Notifications
You must be signed in to change notification settings - Fork 58
EMongoUniqueValidator and ClassName doesn't work #76
Comments
Hello, EMongoUniqueValidator in this project doesn't support the className you should extend your class "RegistroForm" of "Usuario" or try to use this class : https://github.com/Blizzke/yii-mongodb-suite/blob/master/validators/CMongoUniqueValidator.php |
Hello again, thank you for you response, but doesn't work yet, I have implemented the extension CMongoUniqueValidator like this: But I have this error: "Usuario y sus behaviors no tienen un método o closure llamado "exists"." Can you help me? What I'm doing wrong? |
if you would use this class, you must copy entire of project.
|
Hello, congrats and thank you for EMongoUniqueValidator script!, I am Andrés from Chile, I have implemented YiiMongoDbSuite in a proyect for study and learn to MongoDB, but I have a little problem, I need validate field "Email" of my document but doesn't work, My form "RegistroForm" extends from CFormModel and my rule is:
array('email', 'ext.YiiMongoDbSuite.extra.EMongoUniqueValidator', 'className' => 'Usuario'),
But in the webpage appears this error: The property "EMongoUniqueValidator"."className" has not defined.
Because the form "RegistroForm" is not a Model (EMongoDocument), the Model is "Usuario". how can I resolve this?, can any one help me?
The text was updated successfully, but these errors were encountered: