Fix: Set document PID in constructor

This is intended to make sure that the PID for metadata definitions is
available, also after __wakeup.
This commit is contained in:
Kajetan Dvoracek 2022-06-09 13:13:01 +02:00
parent 1a27044368
commit dcd78b0ea9
1 changed files with 1 additions and 0 deletions

View File

@ -1167,6 +1167,7 @@ abstract class Doc
*/
protected function __construct($location, $pid, $preloadedDocument)
{
$this->pid = $pid;
$this->setPreloadedDocument($preloadedDocument);
$this->init($location);
$this->establishRecordId($pid);