Update entity.php