|
@@ 1682-1689 (lines=8) @@
|
| 1679 |
|
return null; |
| 1680 |
|
} |
| 1681 |
|
} |
| 1682 |
|
else{ |
| 1683 |
|
$result = $this->getDatabase()->insertData("INSERT into {$CONFIG->dbprefix}entities |
| 1684 |
|
(type, subtype, owner_guid, site_guid, container_guid, |
| 1685 |
|
access_id, time_created, time_updated, last_action, enabled) |
| 1686 |
|
values |
| 1687 |
|
('$type', $subtype_id, $owner_guid, $site_guid, $container_guid, |
| 1688 |
|
$access_id, $time_created, $now, $now, 'no')"); |
| 1689 |
|
} |
| 1690 |
|
} |
| 1691 |
|
else { |
| 1692 |
|
$result = $this->getDatabase()->insertData("INSERT into {$CONFIG->dbprefix}entities |
|
@@ 1691-1698 (lines=8) @@
|
| 1688 |
|
$access_id, $time_created, $now, $now, 'no')"); |
| 1689 |
|
} |
| 1690 |
|
} |
| 1691 |
|
else { |
| 1692 |
|
$result = $this->getDatabase()->insertData("INSERT into {$CONFIG->dbprefix}entities |
| 1693 |
|
(type, subtype, owner_guid, site_guid, container_guid, |
| 1694 |
|
access_id, time_created, time_updated, last_action) |
| 1695 |
|
values |
| 1696 |
|
('$type', $subtype_id, $owner_guid, $site_guid, $container_guid, |
| 1697 |
|
$access_id, $time_created, $now, $now)"); |
| 1698 |
|
} |
| 1699 |
|
|
| 1700 |
|
if (!$result) { |
| 1701 |
|
throw new \IOException("Unable to save new object's base entity information!"); |