var/cache/dev/doctrine/orm/Proxies/__CG__AppEntityProductModel.php line 522

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 ProductModel extends \App\Entity\ProductModel 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. *
  47. * @return array
  48. */
  49. public function __sleep()
  50. {
  51. if ($this->__isInitialized__) {
  52. return ['__isInitialized__', 'tranlatedEntity', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'id', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'code', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'attributes', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'children', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'parent', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'descriptions', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'manufacturer', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'countryRestrictions', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'dateAdded', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'lastModified', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'status', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'products', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'variant', 'languageId', 'currentLocale'];
  53. }
  54. return ['__isInitialized__', 'tranlatedEntity', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'id', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'code', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'attributes', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'children', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'parent', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'descriptions', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'manufacturer', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'countryRestrictions', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'dateAdded', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'lastModified', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'status', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'products', '' . "\0" . 'App\\Entity\\ProductModel' . "\0" . 'variant', 'languageId', 'currentLocale'];
  55. }
  56. /**
  57. *
  58. */
  59. public function __wakeup()
  60. {
  61. if ( ! $this->__isInitialized__) {
  62. $this->__initializer__ = function (ProductModel $proxy) {
  63. $proxy->__setInitializer(null);
  64. $proxy->__setCloner(null);
  65. $existingProperties = get_object_vars($proxy);
  66. foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
  67. if ( ! array_key_exists($property, $existingProperties)) {
  68. $proxy->$property = $defaultValue;
  69. }
  70. }
  71. };
  72. }
  73. }
  74. /**
  75. *
  76. */
  77. public function __clone()
  78. {
  79. $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
  80. }
  81. /**
  82. * Forces initialization of the proxy
  83. */
  84. public function __load(): void
  85. {
  86. $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
  87. }
  88. /**
  89. * {@inheritDoc}
  90. * @internal generated method: use only when explicitly handling proxy specific loading logic
  91. */
  92. public function __isInitialized(): bool
  93. {
  94. return $this->__isInitialized__;
  95. }
  96. /**
  97. * {@inheritDoc}
  98. * @internal generated method: use only when explicitly handling proxy specific loading logic
  99. */
  100. public function __setInitialized($initialized): void
  101. {
  102. $this->__isInitialized__ = $initialized;
  103. }
  104. /**
  105. * {@inheritDoc}
  106. * @internal generated method: use only when explicitly handling proxy specific loading logic
  107. */
  108. public function __setInitializer(?\Closure $initializer = null): void
  109. {
  110. $this->__initializer__ = $initializer;
  111. }
  112. /**
  113. * {@inheritDoc}
  114. * @internal generated method: use only when explicitly handling proxy specific loading logic
  115. */
  116. public function __getInitializer(): ?\Closure
  117. {
  118. return $this->__initializer__;
  119. }
  120. /**
  121. * {@inheritDoc}
  122. * @internal generated method: use only when explicitly handling proxy specific loading logic
  123. */
  124. public function __setCloner(?\Closure $cloner = null): void
  125. {
  126. $this->__cloner__ = $cloner;
  127. }
  128. /**
  129. * {@inheritDoc}
  130. * @internal generated method: use only when explicitly handling proxy specific cloning logic
  131. */
  132. public function __getCloner(): ?\Closure
  133. {
  134. return $this->__cloner__;
  135. }
  136. /**
  137. * {@inheritDoc}
  138. * @internal generated method: use only when explicitly handling proxy specific loading logic
  139. * @deprecated no longer in use - generated code now relies on internal components rather than generated public API
  140. * @static
  141. */
  142. public function __getLazyProperties(): array
  143. {
  144. return self::$lazyPropertiesDefaults;
  145. }
  146. /**
  147. * {@inheritDoc}
  148. */
  149. public function getId(): int
  150. {
  151. if ($this->__isInitialized__ === false) {
  152. return (int) parent::getId();
  153. }
  154. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
  155. return parent::getId();
  156. }
  157. /**
  158. * {@inheritDoc}
  159. */
  160. public function getAttributes()
  161. {
  162. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAttributes', []);
  163. return parent::getAttributes();
  164. }
  165. /**
  166. * {@inheritDoc}
  167. */
  168. public function getChildren()
  169. {
  170. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getChildren', []);
  171. return parent::getChildren();
  172. }
  173. /**
  174. * {@inheritDoc}
  175. */
  176. public function getParent()
  177. {
  178. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getParent', []);
  179. return parent::getParent();
  180. }
  181. /**
  182. * {@inheritDoc}
  183. */
  184. public function getDescriptions()
  185. {
  186. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescriptions', []);
  187. return parent::getDescriptions();
  188. }
  189. /**
  190. * {@inheritDoc}
  191. */
  192. public function getPictures()
  193. {
  194. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPictures', []);
  195. return parent::getPictures();
  196. }
  197. /**
  198. * {@inheritDoc}
  199. */
  200. public function getManufacturer(): ?\App\Entity\Manufacturer
  201. {
  202. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getManufacturer', []);
  203. return parent::getManufacturer();
  204. }
  205. /**
  206. * {@inheritDoc}
  207. */
  208. public function getCountryRestrictions()
  209. {
  210. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountryRestrictions', []);
  211. return parent::getCountryRestrictions();
  212. }
  213. /**
  214. * {@inheritDoc}
  215. */
  216. public function getCode(): ?string
  217. {
  218. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCode', []);
  219. return parent::getCode();
  220. }
  221. /**
  222. * {@inheritDoc}
  223. */
  224. public function getDateAdded(): \DateTime
  225. {
  226. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDateAdded', []);
  227. return parent::getDateAdded();
  228. }
  229. /**
  230. * {@inheritDoc}
  231. */
  232. public function getLastModified(): ?\DateTime
  233. {
  234. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastModified', []);
  235. return parent::getLastModified();
  236. }
  237. /**
  238. * {@inheritDoc}
  239. */
  240. public function getStatus(): bool
  241. {
  242. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', []);
  243. return parent::getStatus();
  244. }
  245. /**
  246. * {@inheritDoc}
  247. */
  248. public function getVariant(): ?\App\Entity\ProductModelVariant
  249. {
  250. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getVariant', []);
  251. return parent::getVariant();
  252. }
  253. /**
  254. * {@inheritDoc}
  255. */
  256. public function setId(int $id): void
  257. {
  258. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', [$id]);
  259. parent::setId($id);
  260. }
  261. /**
  262. * {@inheritDoc}
  263. */
  264. public function setAttributes($attributes): void
  265. {
  266. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setAttributes', [$attributes]);
  267. parent::setAttributes($attributes);
  268. }
  269. /**
  270. * {@inheritDoc}
  271. */
  272. public function setChildren($children): void
  273. {
  274. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setChildren', [$children]);
  275. parent::setChildren($children);
  276. }
  277. /**
  278. * {@inheritDoc}
  279. */
  280. public function setParent($parent): void
  281. {
  282. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setParent', [$parent]);
  283. parent::setParent($parent);
  284. }
  285. /**
  286. * {@inheritDoc}
  287. */
  288. public function setDescriptions($descriptions): void
  289. {
  290. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescriptions', [$descriptions]);
  291. parent::setDescriptions($descriptions);
  292. }
  293. /**
  294. * {@inheritDoc}
  295. */
  296. public function setPictures($pictures): void
  297. {
  298. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPictures', [$pictures]);
  299. parent::setPictures($pictures);
  300. }
  301. /**
  302. * {@inheritDoc}
  303. */
  304. public function setManufacturer(?\App\Entity\Manufacturer $manufacturer): void
  305. {
  306. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setManufacturer', [$manufacturer]);
  307. parent::setManufacturer($manufacturer);
  308. }
  309. /**
  310. * {@inheritDoc}
  311. */
  312. public function setCountryRestrictions($countryRestrictions): void
  313. {
  314. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCountryRestrictions', [$countryRestrictions]);
  315. parent::setCountryRestrictions($countryRestrictions);
  316. }
  317. /**
  318. * {@inheritDoc}
  319. */
  320. public function setCode(?string $code): void
  321. {
  322. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCode', [$code]);
  323. parent::setCode($code);
  324. }
  325. /**
  326. * {@inheritDoc}
  327. */
  328. public function setDateAdded(\DateTime $dateAdded): void
  329. {
  330. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDateAdded', [$dateAdded]);
  331. parent::setDateAdded($dateAdded);
  332. }
  333. /**
  334. * {@inheritDoc}
  335. */
  336. public function setLastModified(?\DateTime $lastModified): void
  337. {
  338. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastModified', [$lastModified]);
  339. parent::setLastModified($lastModified);
  340. }
  341. /**
  342. * {@inheritDoc}
  343. */
  344. public function setStatus(bool $status): void
  345. {
  346. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatus', [$status]);
  347. parent::setStatus($status);
  348. }
  349. /**
  350. * {@inheritDoc}
  351. */
  352. public function setVariant(?\App\Entity\ProductModelVariant $variant): void
  353. {
  354. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setVariant', [$variant]);
  355. parent::setVariant($variant);
  356. }
  357. /**
  358. * {@inheritDoc}
  359. */
  360. public function hasParent()
  361. {
  362. $this->__initializer__ && $this->__initializer__->__invoke($this, 'hasParent', []);
  363. return parent::hasParent();
  364. }
  365. /**
  366. * {@inheritDoc}
  367. */
  368. public function hasChildren()
  369. {
  370. $this->__initializer__ && $this->__initializer__->__invoke($this, 'hasChildren', []);
  371. return parent::hasChildren();
  372. }
  373. /**
  374. * {@inheritDoc}
  375. */
  376. public function toArray(): array
  377. {
  378. $this->__initializer__ && $this->__initializer__->__invoke($this, 'toArray', []);
  379. return parent::toArray();
  380. }
  381. /**
  382. * {@inheritDoc}
  383. */
  384. public function loadDescriptions(\Doctrine\ORM\EntityManager $em)
  385. {
  386. $this->__initializer__ && $this->__initializer__->__invoke($this, 'loadDescriptions', [$em]);
  387. return parent::loadDescriptions($em);
  388. }
  389. /**
  390. * {@inheritDoc}
  391. */
  392. public function getProductModelDescription($lang = 'fr'): ?\App\Entity\ProductModelDescription
  393. {
  394. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getProductModelDescription', [$lang]);
  395. return parent::getProductModelDescription($lang);
  396. }
  397. /**
  398. * {@inheritDoc}
  399. */
  400. public function getProducts()
  401. {
  402. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getProducts', []);
  403. return parent::getProducts();
  404. }
  405. /**
  406. * {@inheritDoc}
  407. */
  408. public function setProducts($products): void
  409. {
  410. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setProducts', [$products]);
  411. parent::setProducts($products);
  412. }
  413. /**
  414. * {@inheritDoc}
  415. */
  416. public function getDefaultProduct(): ?\App\Entity\Product
  417. {
  418. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDefaultProduct', []);
  419. return parent::getDefaultProduct();
  420. }
  421. /**
  422. * {@inheritDoc}
  423. */
  424. public function getAllProducts()
  425. {
  426. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAllProducts', []);
  427. return parent::getAllProducts();
  428. }
  429. /**
  430. * {@inheritDoc}
  431. */
  432. public function getAssets()
  433. {
  434. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAssets', []);
  435. return parent::getAssets();
  436. }
  437. /**
  438. * {@inheritDoc}
  439. */
  440. public function prePersit(\Doctrine\ORM\Event\LifecycleEventArgs $args)
  441. {
  442. $this->__initializer__ && $this->__initializer__->__invoke($this, 'prePersit', [$args]);
  443. return parent::prePersit($args);
  444. }
  445. /**
  446. * {@inheritDoc}
  447. */
  448. public function getLanguageId()
  449. {
  450. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLanguageId', []);
  451. return parent::getLanguageId();
  452. }
  453. /**
  454. * {@inheritDoc}
  455. */
  456. public function setLanguageId($languageId)
  457. {
  458. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLanguageId', [$languageId]);
  459. return parent::setLanguageId($languageId);
  460. }
  461. /**
  462. * {@inheritDoc}
  463. */
  464. public function setCurrentLocale($locale)
  465. {
  466. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCurrentLocale', [$locale]);
  467. return parent::setCurrentLocale($locale);
  468. }
  469. /**
  470. * {@inheritDoc}
  471. */
  472. public function translate($languageCode = 'fr')
  473. {
  474. $this->__initializer__ && $this->__initializer__->__invoke($this, 'translate', [$languageCode]);
  475. return parent::translate($languageCode);
  476. }
  477. /**
  478. * {@inheritDoc}
  479. */
  480. public function __call($method, $arguments)
  481. {
  482. $this->__initializer__ && $this->__initializer__->__invoke($this, '__call', [$method, $arguments]);
  483. return parent::__call($method, $arguments);
  484. }
  485. }