Update EntityRulesAbstract.php