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:
parent
1a27044368
commit
dcd78b0ea9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue