Update AbstractEntity.php