<?php

namespace Proxies\__CG__\Sulu\Bundle\MediaBundle\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class File extends \Sulu\Bundle\MediaBundle\Entity\File implements \Doctrine\ORM\Proxy\InternalProxy
{
    use \Symfony\Component\VarExporter\LazyGhostTrait {
        initializeLazyObject as __load;
        setLazyObjectAsInitialized as public __setInitialized;
        isLazyObjectInitialized as private;
        createLazyGhost as private;
        resetLazyObject as private;
    }

    private const LAZY_OBJECT_PROPERTY_SCOPES = [
        "\0".'*'."\0".'changed' => [parent::class, 'changed', null, 8],
        "\0".'*'."\0".'changer' => [parent::class, 'changer', null, 8],
        "\0".'*'."\0".'created' => [parent::class, 'created', null, 8],
        "\0".'*'."\0".'creator' => [parent::class, 'creator', null, 8],
        "\0".parent::class."\0".'fileVersions' => [parent::class, 'fileVersions', null, 16],
        "\0".parent::class."\0".'id' => [parent::class, 'id', null, 16],
        "\0".parent::class."\0".'media' => [parent::class, 'media', null, 16],
        "\0".parent::class."\0".'version' => [parent::class, 'version', null, 16],
        'changed' => [parent::class, 'changed', null, 8],
        'changer' => [parent::class, 'changer', null, 8],
        'created' => [parent::class, 'created', null, 8],
        'creator' => [parent::class, 'creator', null, 8],
        'fileVersions' => [parent::class, 'fileVersions', null, 16],
        'id' => [parent::class, 'id', null, 16],
        'media' => [parent::class, 'media', null, 16],
        'version' => [parent::class, 'version', null, 16],
    ];

    public function __isInitialized(): bool
    {
        return isset($this->lazyObjectState) && $this->isLazyObjectInitialized();
    }

    public function __serialize(): array
    {
        $properties = (array) $this;
        unset($properties["\0" . self::class . "\0lazyObjectState"]);

        return $properties;
    }
}
