Validate an Entity Without Saving?

Posts   
 
    
vm0112
User
Posts: 5
Joined: 15-Jun-2018
# Posted on: 18-Jun-2018 13:48:28   

I know entities validate on save, but what if I want to pre-validate before saving? Is there a way to "force" validate an entity without trying to save it?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 18-Jun-2018 15:31:59   

Yes, you can call ValidateEntity().

Please read the following documentation page Field & Entity Validation