var/cache/dev/doctrine/orm/Proxies/__CG__AppEntitySubCategory.php line 9

Open in your IDE?
  1. <?php
  2. namespace Proxies\__CG__\App\Entity;
  3. /**
  4.  * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
  5.  */
  6. class SubCategory extends \App\Entity\SubCategory implements \Doctrine\ORM\Proxy\Proxy
  7. {
  8.     /**
  9.      * @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
  10.      *      three parameters, being respectively the proxy object to be initialized, the method that triggered the
  11.      *      initialization process and an array of ordered parameters that were passed to that method.
  12.      *
  13.      * @see \Doctrine\Common\Proxy\Proxy::__setInitializer
  14.      */
  15.     public $__initializer__;
  16.     /**
  17.      * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
  18.      *
  19.      * @see \Doctrine\Common\Proxy\Proxy::__setCloner
  20.      */
  21.     public $__cloner__;
  22.     /**
  23.      * @var boolean flag indicating if this object was already initialized
  24.      *
  25.      * @see \Doctrine\Persistence\Proxy::__isInitialized
  26.      */
  27.     public $__isInitialized__ false;
  28.     /**
  29.      * @var array<string, null> properties to be lazy loaded, indexed by property name
  30.      */
  31.     public static $lazyPropertiesNames = array (
  32. );
  33.     /**
  34.      * @var array<string, mixed> default values of properties to be lazy loaded, with keys being the property names
  35.      *
  36.      * @see \Doctrine\Common\Proxy\Proxy::__getLazyProperties
  37.      */
  38.     public static $lazyPropertiesDefaults = array (
  39. );
  40.     public function __construct(?\Closure $initializer null, ?\Closure $cloner null)
  41.     {
  42.         $this->__initializer__ $initializer;
  43.         $this->__cloner__      $cloner;
  44.     }
  45.     /**
  46.      * {@inheritDoc}
  47.      * @param string $name
  48.      */
  49.     public function __get($name)
  50.     {
  51.         $this->__initializer__ && $this->__initializer__->__invoke($this'__get', [$name]);
  52.         return parent::__get($name);
  53.     }
  54.     /**
  55.      * 
  56.      * @return array
  57.      */
  58.     public function __sleep()
  59.     {
  60.         if ($this->__isInitialized__) {
  61.             return ['__isInitialized__''' "\0" 'App\\Entity\\SubCategory' "\0" 'id''' "\0" 'App\\Entity\\SubCategory' "\0" 'position''' "\0" 'App\\Entity\\SubCategory' "\0" 'category''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryIconFile''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryIconFileName''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryBgFile''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryBgFileName''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryBgFileSize''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryBgFileUpdatedAt''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryIconFileSize''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryIconFileUpdatedAt''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryFile''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryFileName''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryFileSize''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryFileUpdatedAt''' "\0" 'App\\Entity\\SubCategory' "\0" 'products''' "\0" 'App\\Entity\\SubCategory' "\0" 'subSubCategories''' "\0" 'App\\Entity\\SubCategory' "\0" 'applicationProducts''translations''newTranslations''currentLocale''defaultLocale'];
  62.         }
  63.         return ['__isInitialized__''' "\0" 'App\\Entity\\SubCategory' "\0" 'id''' "\0" 'App\\Entity\\SubCategory' "\0" 'position''' "\0" 'App\\Entity\\SubCategory' "\0" 'category''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryIconFile''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryIconFileName''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryBgFile''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryBgFileName''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryBgFileSize''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryBgFileUpdatedAt''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryIconFileSize''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryIconFileUpdatedAt''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryFile''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryFileName''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryFileSize''' "\0" 'App\\Entity\\SubCategory' "\0" 'subCategoryFileUpdatedAt''' "\0" 'App\\Entity\\SubCategory' "\0" 'products''' "\0" 'App\\Entity\\SubCategory' "\0" 'subSubCategories''' "\0" 'App\\Entity\\SubCategory' "\0" 'applicationProducts''translations''newTranslations''currentLocale''defaultLocale'];
  64.     }
  65.     /**
  66.      * 
  67.      */
  68.     public function __wakeup()
  69.     {
  70.         if ( ! $this->__isInitialized__) {
  71.             $this->__initializer__ = function (SubCategory $proxy) {
  72.                 $proxy->__setInitializer(null);
  73.                 $proxy->__setCloner(null);
  74.                 $existingProperties get_object_vars($proxy);
  75.                 foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
  76.                     if ( ! array_key_exists($property$existingProperties)) {
  77.                         $proxy->$property $defaultValue;
  78.                     }
  79.                 }
  80.             };
  81.         }
  82.     }
  83.     /**
  84.      * 
  85.      */
  86.     public function __clone()
  87.     {
  88.         $this->__cloner__ && $this->__cloner__->__invoke($this'__clone', []);
  89.     }
  90.     /**
  91.      * Forces initialization of the proxy
  92.      */
  93.     public function __load(): void
  94.     {
  95.         $this->__initializer__ && $this->__initializer__->__invoke($this'__load', []);
  96.     }
  97.     /**
  98.      * {@inheritDoc}
  99.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  100.      */
  101.     public function __isInitialized(): bool
  102.     {
  103.         return $this->__isInitialized__;
  104.     }
  105.     /**
  106.      * {@inheritDoc}
  107.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  108.      */
  109.     public function __setInitialized($initialized): void
  110.     {
  111.         $this->__isInitialized__ $initialized;
  112.     }
  113.     /**
  114.      * {@inheritDoc}
  115.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  116.      */
  117.     public function __setInitializer(\Closure $initializer null): void
  118.     {
  119.         $this->__initializer__ $initializer;
  120.     }
  121.     /**
  122.      * {@inheritDoc}
  123.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  124.      */
  125.     public function __getInitializer(): ?\Closure
  126.     {
  127.         return $this->__initializer__;
  128.     }
  129.     /**
  130.      * {@inheritDoc}
  131.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  132.      */
  133.     public function __setCloner(\Closure $cloner null): void
  134.     {
  135.         $this->__cloner__ $cloner;
  136.     }
  137.     /**
  138.      * {@inheritDoc}
  139.      * @internal generated method: use only when explicitly handling proxy specific cloning logic
  140.      */
  141.     public function __getCloner(): ?\Closure
  142.     {
  143.         return $this->__cloner__;
  144.     }
  145.     /**
  146.      * {@inheritDoc}
  147.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  148.      * @deprecated no longer in use - generated code now relies on internal components rather than generated public API
  149.      * @static
  150.      */
  151.     public function __getLazyProperties(): array
  152.     {
  153.         return self::$lazyPropertiesDefaults;
  154.     }
  155.     
  156.     /**
  157.      * {@inheritDoc}
  158.      */
  159.     public function __call($method$arguments)
  160.     {
  161.         $this->__initializer__ && $this->__initializer__->__invoke($this'__call', [$method$arguments]);
  162.         return parent::__call($method$arguments);
  163.     }
  164.     /**
  165.      * {@inheritDoc}
  166.      */
  167.     public function __toString()
  168.     {
  169.         $this->__initializer__ && $this->__initializer__->__invoke($this'__toString', []);
  170.         return parent::__toString();
  171.     }
  172.     /**
  173.      * {@inheritDoc}
  174.      */
  175.     public function setSubCategoryBgFile(\Symfony\Component\HttpFoundation\File\File $image NULL)
  176.     {
  177.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryBgFile', [$image]);
  178.         return parent::setSubCategoryBgFile($image);
  179.     }
  180.     /**
  181.      * {@inheritDoc}
  182.      */
  183.     public function getSubCategoryBgFile()
  184.     {
  185.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryBgFile', []);
  186.         return parent::getSubCategoryBgFile();
  187.     }
  188.     /**
  189.      * {@inheritDoc}
  190.      */
  191.     public function getSubCategoryBgFileName(): ?string
  192.     {
  193.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryBgFileName', []);
  194.         return parent::getSubCategoryBgFileName();
  195.     }
  196.     /**
  197.      * {@inheritDoc}
  198.      */
  199.     public function setSubCategoryBgFileName(?string $subCategoryBgFileName): \App\Entity\SubCategory
  200.     {
  201.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryBgFileName', [$subCategoryBgFileName]);
  202.         return parent::setSubCategoryBgFileName($subCategoryBgFileName);
  203.     }
  204.     /**
  205.      * {@inheritDoc}
  206.      */
  207.     public function getSubCategoryBgFileSize(): ?int
  208.     {
  209.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryBgFileSize', []);
  210.         return parent::getSubCategoryBgFileSize();
  211.     }
  212.     /**
  213.      * {@inheritDoc}
  214.      */
  215.     public function setSubCategoryBgFileSize(?int $subCategoryBgFileSize): \App\Entity\SubCategory
  216.     {
  217.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryBgFileSize', [$subCategoryBgFileSize]);
  218.         return parent::setSubCategoryBgFileSize($subCategoryBgFileSize);
  219.     }
  220.     /**
  221.      * {@inheritDoc}
  222.      */
  223.     public function getSubCategoryBgFileUpdatedAt(): ?\DateTimeInterface
  224.     {
  225.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryBgFileUpdatedAt', []);
  226.         return parent::getSubCategoryBgFileUpdatedAt();
  227.     }
  228.     /**
  229.      * {@inheritDoc}
  230.      */
  231.     public function setSubCategoryBgFileUpdatedAt(?\DateTimeInterface $subCategoryBgFileUpdatedAt): \App\Entity\SubCategory
  232.     {
  233.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryBgFileUpdatedAt', [$subCategoryBgFileUpdatedAt]);
  234.         return parent::setSubCategoryBgFileUpdatedAt($subCategoryBgFileUpdatedAt);
  235.     }
  236.     /**
  237.      * {@inheritDoc}
  238.      */
  239.     public function setSubCategoryIconFile(\Symfony\Component\HttpFoundation\File\File $image NULL)
  240.     {
  241.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryIconFile', [$image]);
  242.         return parent::setSubCategoryIconFile($image);
  243.     }
  244.     /**
  245.      * {@inheritDoc}
  246.      */
  247.     public function getSubCategoryIconFile()
  248.     {
  249.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryIconFile', []);
  250.         return parent::getSubCategoryIconFile();
  251.     }
  252.     /**
  253.      * {@inheritDoc}
  254.      */
  255.     public function getSubCategoryIconFileName(): ?string
  256.     {
  257.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryIconFileName', []);
  258.         return parent::getSubCategoryIconFileName();
  259.     }
  260.     /**
  261.      * {@inheritDoc}
  262.      */
  263.     public function setSubCategoryIconFileName(?string $subCategoryIconFileName): \App\Entity\SubCategory
  264.     {
  265.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryIconFileName', [$subCategoryIconFileName]);
  266.         return parent::setSubCategoryIconFileName($subCategoryIconFileName);
  267.     }
  268.     /**
  269.      * {@inheritDoc}
  270.      */
  271.     public function getSubCategoryIconFileSize(): ?int
  272.     {
  273.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryIconFileSize', []);
  274.         return parent::getSubCategoryIconFileSize();
  275.     }
  276.     /**
  277.      * {@inheritDoc}
  278.      */
  279.     public function setSubCategoryIconFileSize(?int $subCategoryIconFileSize): \App\Entity\SubCategory
  280.     {
  281.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryIconFileSize', [$subCategoryIconFileSize]);
  282.         return parent::setSubCategoryIconFileSize($subCategoryIconFileSize);
  283.     }
  284.     /**
  285.      * {@inheritDoc}
  286.      */
  287.     public function getSubCategoryIconFileUpdatedAt(): ?\DateTimeInterface
  288.     {
  289.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryIconFileUpdatedAt', []);
  290.         return parent::getSubCategoryIconFileUpdatedAt();
  291.     }
  292.     /**
  293.      * {@inheritDoc}
  294.      */
  295.     public function setSubCategoryIconFileUpdatedAt(?\DateTimeInterface $subCategoryIconFileUpdatedAt): \App\Entity\SubCategory
  296.     {
  297.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryIconFileUpdatedAt', [$subCategoryIconFileUpdatedAt]);
  298.         return parent::setSubCategoryIconFileUpdatedAt($subCategoryIconFileUpdatedAt);
  299.     }
  300.     /**
  301.      * {@inheritDoc}
  302.      */
  303.     public function setSubCategoryFile(\Symfony\Component\HttpFoundation\File\File $image NULL)
  304.     {
  305.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryFile', [$image]);
  306.         return parent::setSubCategoryFile($image);
  307.     }
  308.     /**
  309.      * {@inheritDoc}
  310.      */
  311.     public function getSubCategoryFile()
  312.     {
  313.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryFile', []);
  314.         return parent::getSubCategoryFile();
  315.     }
  316.     /**
  317.      * {@inheritDoc}
  318.      */
  319.     public function getSubCategoryFileName(): ?string
  320.     {
  321.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryFileName', []);
  322.         return parent::getSubCategoryFileName();
  323.     }
  324.     /**
  325.      * {@inheritDoc}
  326.      */
  327.     public function setSubCategoryFileName(?string $subCategoryFileName): \App\Entity\SubCategory
  328.     {
  329.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryFileName', [$subCategoryFileName]);
  330.         return parent::setSubCategoryFileName($subCategoryFileName);
  331.     }
  332.     /**
  333.      * {@inheritDoc}
  334.      */
  335.     public function getSubCategoryFileSize(): ?int
  336.     {
  337.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryFileSize', []);
  338.         return parent::getSubCategoryFileSize();
  339.     }
  340.     /**
  341.      * {@inheritDoc}
  342.      */
  343.     public function setSubCategoryFileSize(?int $subCategoryFileSize): \App\Entity\SubCategory
  344.     {
  345.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryFileSize', [$subCategoryFileSize]);
  346.         return parent::setSubCategoryFileSize($subCategoryFileSize);
  347.     }
  348.     /**
  349.      * {@inheritDoc}
  350.      */
  351.     public function getSubCategoryFileUpdatedAt(): ?\DateTimeInterface
  352.     {
  353.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubCategoryFileUpdatedAt', []);
  354.         return parent::getSubCategoryFileUpdatedAt();
  355.     }
  356.     /**
  357.      * {@inheritDoc}
  358.      */
  359.     public function setSubCategoryFileUpdatedAt(?\DateTimeInterface $subCategoryFileUpdatedAt): \App\Entity\SubCategory
  360.     {
  361.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSubCategoryFileUpdatedAt', [$subCategoryFileUpdatedAt]);
  362.         return parent::setSubCategoryFileUpdatedAt($subCategoryFileUpdatedAt);
  363.     }
  364.     /**
  365.      * {@inheritDoc}
  366.      */
  367.     public function getId(): ?int
  368.     {
  369.         if ($this->__isInitialized__ === false) {
  370.             return (int)  parent::getId();
  371.         }
  372.         $this->__initializer__ && $this->__initializer__->__invoke($this'getId', []);
  373.         return parent::getId();
  374.     }
  375.     /**
  376.      * {@inheritDoc}
  377.      */
  378.     public function getPosition(): ?int
  379.     {
  380.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPosition', []);
  381.         return parent::getPosition();
  382.     }
  383.     /**
  384.      * {@inheritDoc}
  385.      */
  386.     public function setPosition(?int $position): \App\Entity\SubCategory
  387.     {
  388.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPosition', [$position]);
  389.         return parent::setPosition($position);
  390.     }
  391.     /**
  392.      * {@inheritDoc}
  393.      */
  394.     public function getCategory(): ?\App\Entity\Category
  395.     {
  396.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCategory', []);
  397.         return parent::getCategory();
  398.     }
  399.     /**
  400.      * {@inheritDoc}
  401.      */
  402.     public function setCategory(?\App\Entity\Category $category): \App\Entity\SubCategory
  403.     {
  404.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCategory', [$category]);
  405.         return parent::setCategory($category);
  406.     }
  407.     /**
  408.      * {@inheritDoc}
  409.      */
  410.     public function setParent(?\App\Entity\Category $category): \App\Entity\SubCategory
  411.     {
  412.         $this->__initializer__ && $this->__initializer__->__invoke($this'setParent', [$category]);
  413.         return parent::setParent($category);
  414.     }
  415.     /**
  416.      * {@inheritDoc}
  417.      */
  418.     public function getParent(): ?\App\Entity\Category
  419.     {
  420.         $this->__initializer__ && $this->__initializer__->__invoke($this'getParent', []);
  421.         return parent::getParent();
  422.     }
  423.     /**
  424.      * {@inheritDoc}
  425.      */
  426.     public function getProducts(): \Doctrine\Common\Collections\Collection
  427.     {
  428.         $this->__initializer__ && $this->__initializer__->__invoke($this'getProducts', []);
  429.         return parent::getProducts();
  430.     }
  431.     /**
  432.      * {@inheritDoc}
  433.      */
  434.     public function addProduct(\App\Entity\Product $product): \App\Entity\SubCategory
  435.     {
  436.         $this->__initializer__ && $this->__initializer__->__invoke($this'addProduct', [$product]);
  437.         return parent::addProduct($product);
  438.     }
  439.     /**
  440.      * {@inheritDoc}
  441.      */
  442.     public function removeProduct(\App\Entity\Product $product): \App\Entity\SubCategory
  443.     {
  444.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeProduct', [$product]);
  445.         return parent::removeProduct($product);
  446.     }
  447.     /**
  448.      * {@inheritDoc}
  449.      */
  450.     public function getSubSubCategories(): \Doctrine\Common\Collections\Collection
  451.     {
  452.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSubSubCategories', []);
  453.         return parent::getSubSubCategories();
  454.     }
  455.     /**
  456.      * {@inheritDoc}
  457.      */
  458.     public function addSubSubCategory(\App\Entity\SubSubCategory $subSubCategory): \App\Entity\SubCategory
  459.     {
  460.         $this->__initializer__ && $this->__initializer__->__invoke($this'addSubSubCategory', [$subSubCategory]);
  461.         return parent::addSubSubCategory($subSubCategory);
  462.     }
  463.     /**
  464.      * {@inheritDoc}
  465.      */
  466.     public function removeSubSubCategory(\App\Entity\SubSubCategory $subSubCategory): \App\Entity\SubCategory
  467.     {
  468.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeSubSubCategory', [$subSubCategory]);
  469.         return parent::removeSubSubCategory($subSubCategory);
  470.     }
  471.     /**
  472.      * {@inheritDoc}
  473.      */
  474.     public function getApplicationProducts(): \Doctrine\Common\Collections\Collection
  475.     {
  476.         $this->__initializer__ && $this->__initializer__->__invoke($this'getApplicationProducts', []);
  477.         return parent::getApplicationProducts();
  478.     }
  479.     /**
  480.      * {@inheritDoc}
  481.      */
  482.     public function addApplicationProduct(\App\Entity\ApplicationProduct $applicationProduct): \App\Entity\SubCategory
  483.     {
  484.         $this->__initializer__ && $this->__initializer__->__invoke($this'addApplicationProduct', [$applicationProduct]);
  485.         return parent::addApplicationProduct($applicationProduct);
  486.     }
  487.     /**
  488.      * {@inheritDoc}
  489.      */
  490.     public function removeApplicationProduct(\App\Entity\ApplicationProduct $applicationProduct): \App\Entity\SubCategory
  491.     {
  492.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeApplicationProduct', [$applicationProduct]);
  493.         return parent::removeApplicationProduct($applicationProduct);
  494.     }
  495.     /**
  496.      * {@inheritDoc}
  497.      */
  498.     public function findChild($name$locale 'fr'): ?\App\Entity\SubSubCategory
  499.     {
  500.         $this->__initializer__ && $this->__initializer__->__invoke($this'findChild', [$name$locale]);
  501.         return parent::findChild($name$locale);
  502.     }
  503.     /**
  504.      * {@inheritDoc}
  505.      */
  506.     public function addChild(\App\Entity\SubSubCategory $child): \App\Entity\SubCategory
  507.     {
  508.         $this->__initializer__ && $this->__initializer__->__invoke($this'addChild', [$child]);
  509.         return parent::addChild($child);
  510.     }
  511.     /**
  512.      * {@inheritDoc}
  513.      */
  514.     public function getTranslations()
  515.     {
  516.         $this->__initializer__ && $this->__initializer__->__invoke($this'getTranslations', []);
  517.         return parent::getTranslations();
  518.     }
  519.     /**
  520.      * {@inheritDoc}
  521.      */
  522.     public function setTranslations(iterable $translations): void
  523.     {
  524.         $this->__initializer__ && $this->__initializer__->__invoke($this'setTranslations', [$translations]);
  525.         parent::setTranslations($translations);
  526.     }
  527.     /**
  528.      * {@inheritDoc}
  529.      */
  530.     public function getNewTranslations()
  531.     {
  532.         $this->__initializer__ && $this->__initializer__->__invoke($this'getNewTranslations', []);
  533.         return parent::getNewTranslations();
  534.     }
  535.     /**
  536.      * {@inheritDoc}
  537.      */
  538.     public function addTranslation(\Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface $translation): void
  539.     {
  540.         $this->__initializer__ && $this->__initializer__->__invoke($this'addTranslation', [$translation]);
  541.         parent::addTranslation($translation);
  542.     }
  543.     /**
  544.      * {@inheritDoc}
  545.      */
  546.     public function removeTranslation(\Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface $translation): void
  547.     {
  548.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeTranslation', [$translation]);
  549.         parent::removeTranslation($translation);
  550.     }
  551.     /**
  552.      * {@inheritDoc}
  553.      */
  554.     public function translate(string $locale NULLbool $fallbackToDefault true): \Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface
  555.     {
  556.         $this->__initializer__ && $this->__initializer__->__invoke($this'translate', [$locale$fallbackToDefault]);
  557.         return parent::translate($locale$fallbackToDefault);
  558.     }
  559.     /**
  560.      * {@inheritDoc}
  561.      */
  562.     public function mergeNewTranslations(): void
  563.     {
  564.         $this->__initializer__ && $this->__initializer__->__invoke($this'mergeNewTranslations', []);
  565.         parent::mergeNewTranslations();
  566.     }
  567.     /**
  568.      * {@inheritDoc}
  569.      */
  570.     public function setCurrentLocale(string $locale): void
  571.     {
  572.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCurrentLocale', [$locale]);
  573.         parent::setCurrentLocale($locale);
  574.     }
  575.     /**
  576.      * {@inheritDoc}
  577.      */
  578.     public function getCurrentLocale(): string
  579.     {
  580.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCurrentLocale', []);
  581.         return parent::getCurrentLocale();
  582.     }
  583.     /**
  584.      * {@inheritDoc}
  585.      */
  586.     public function setDefaultLocale($locale): void
  587.     {
  588.         $this->__initializer__ && $this->__initializer__->__invoke($this'setDefaultLocale', [$locale]);
  589.         parent::setDefaultLocale($locale);
  590.     }
  591.     /**
  592.      * {@inheritDoc}
  593.      */
  594.     public function getDefaultLocale(): string
  595.     {
  596.         $this->__initializer__ && $this->__initializer__->__invoke($this'getDefaultLocale', []);
  597.         return parent::getDefaultLocale();
  598.     }
  599. }