Update BaseEntity.php