Skip to content
Snippets Groups Projects
Commit f638f0ed authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

[Fix] Possibilité de préciser l'entité à utiliser pour le diff. de Ligne

parent 58a78ecd
No related branches found
No related tags found
No related merge requests found
Pipeline #36121 passed
CHANGELOG
=========
6.0.6 (20/02/2025)
------------------
- [Fix] Possibilité de préciser l'entité à utiliser pour le diff. de Ligne
6.0.5 (09/01/2025)
------------------
......
......@@ -183,10 +183,12 @@ class Ligne
*
* @return StdClass
*/
public function getEntity()
public function getEntity(?string $entityClass = null)
{
if (!$entityClass) {
$filter = new UnderscoreToCamelCase();
$entityClass = 'Application\\Entity\Db\\' . $filter->filter(strtolower($this->getTableName()));
}
return $this->entityManager->find($entityClass, $this->getId());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment