This is weird as it looks like it has just stopped working.
Entity.cfc
/**
-
@display Name
-
@NotEmpty
*/
property name=“name” ormtype=“string” length=“50”;
model.cfc
var Entity = ORMService.new(‘Comment’);
BeanFactory.populateModel(model=Entity);
writeDump(ValidationService.validate(commentEntity)); abort;
ValidationService is just extending the hyrule.cfc from ColdBox with no methods except what is being inherited.
It appears that if I populate the Model (have also tried populateBean) it isn’t validating this. Does anyone have any clues?
Regards,
Andrew Scott