Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Access id property without getter.
Some implementations typehint getId to integer but default is null.

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb authored and rullzer committed Dec 24, 2018
commit 8a952b73d65d332832c3468e1c6af5108b80bc83
2 changes: 1 addition & 1 deletion lib/public/AppFramework/Db/QBMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function insert(Entity $entity): Entity {

$qb->execute();

if($entity->getId() === null) {
if($entity->id === null) {
$entity->setId((int)$qb->getLastInsertId());
}

Expand Down