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:
parent
21b80a89b0
commit
8a952b73d6
|
@ -119,7 +119,7 @@ abstract class QBMapper {
|
|||
|
||||
$qb->execute();
|
||||
|
||||
if($entity->getId() === null) {
|
||||
if($entity->id === null) {
|
||||
$entity->setId((int)$qb->getLastInsertId());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue