Naming conflicts
Collection naming collisions
use ForestAdmin\AgentPHP\Agent\Utils\Env;
use ForestAdmin\AgentPHP\DatasourceDoctrine\DoctrineDatasource;
use ForestAdmin\SymfonyForestAdmin\Service\ForestAgent;
return static function (ForestAgent $forestAgent) {
// Rename the `customers` and `stores` collections.
// Note that other collections won't be renamed.
$forestAgent->addDatasource(
new DoctrineDatasource(
$forestAgent->getEntityManager(),
['url' => Env::get('DATABASE_URL')]
),
[
'rename' => [
'Customer' => 'CustomerFromDoctrine',
'Store' => 'StoreFromDoctrine',
],
]
)
->build();
};Field naming collisions
Last updated