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 Roeland Jago Douma
parent 21b80a89b0
commit 8a952b73d6
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

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