Problems with the hyrule validation, not getting it to work anymore.

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

http://www.andyscott.id.au/