src/Entity/Fields/FakerData/String/UrlFakerData.php
<?php
declare(strict_types=1);
namespace EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\FakerData\String;
use EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\FakerData\AbstractFakerDataProvider;
class UrlFakerData extends AbstractFakerDataProvider
{
public function __invoke()
{
//to prevent issues when using as an archetype, otherwise this gets replaced with the new field property name
$property = 'u' . 'rl';
return $this->generator->$property;
}
}