according to PHPDoc this function shall return the entity


@bantu @Raydiation @nickvergessen THX