[Core][Util] Hotfix: In App\Core\DB\DB persistWithSameId, casting the id to an int. In App\Util\HTML html, tag is now evaluated beforehand, making sure it's a string.

This commit is contained in:
2021-10-19 21:06:23 +01:00
committed by Diogo Peralta Cordeiro
parent f78cfed41a
commit 99fd2f725b
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ class DB
$metadata = self::getClassMetadata(\get_class($owner));
$seqName = $metadata->getSequenceName($conn->getDatabasePlatform());
self::persist($owner);
$id = $conn->lastInsertId($seqName);
$id = (int ) $conn->lastInsertId($seqName);
F\map(\is_array($others) ? $others : [$others], function ($o) use ($id) { $o->setId($id); self::persist($o); });
if (!\is_null($extra)) {
$extra($id);