Access id property without getter.

Some implementations typehint getId to integer but default is null.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2018-12-15 14:22:54 +01:00 committed by Backportbot
parent 97b03745b0
commit 92938f6f00

View file

@ -119,7 +119,7 @@ abstract class QBMapper {
$qb->execute();
if($entity->getId() === null) {
if($entity->id === null) {
$entity->setId((int)$qb->getLastInsertId());
}