diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-12-15 16:22:54 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-24 16:21:40 +0300 |
commit | 8a952b73d65d332832c3468e1c6af5108b80bc83 (patch) | |
tree | 854a87229cafe7c8eb33b0376e0210785ba6aebe /lib/public/AppFramework | |
parent | 21b80a89b0d34318c257cc93eba9333228f1854e (diff) |
Access id property without getter.
Some implementations typehint getId to integer but default is null.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r-- | lib/public/AppFramework/Db/QBMapper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php index 3e0a3c206e7..a6a44b8902e 100644 --- a/lib/public/AppFramework/Db/QBMapper.php +++ b/lib/public/AppFramework/Db/QBMapper.php @@ -119,7 +119,7 @@ abstract class QBMapper { $qb->execute(); - if($entity->getId() === null) { + if($entity->id === null) { $entity->setId((int)$qb->getLastInsertId()); } |