Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-484

Automate record creation in temp tables

    XMLWordPrintable

    Details

    • Additional information:
      Hide

      Also, when using temp tables and you are in OnAfterItemCreate method, then $object->GetID() will return 0 instead of -1/-2/etc., because setTempID() is called after kDBItem::Create() method is executed completely.

      Show
      Also, when using temp tables and you are in OnAfterItemCreate method, then $object->GetID() will return 0 instead of -1/-2/etc., because setTempID() is called after kDBItem::Create() method is executed completely.
    • External issue ID:
      617
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      I propose we move code

      if ($object->IsTempTable())

      { $object->setTempID(); }

      into kDBItem::Create method, so when sub-item is being create in temp table, then it's ID is automatically assigned.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: