var/classes/DataObject/Horse.php line 1016

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - name [input]
  8.  * - slug [input]
  9.  * - sex [select]
  10.  * - ueln [input]
  11.  * - birthday [date]
  12.  * - weight [numeric]
  13.  * - originCountry [country]
  14.  * - father [input]
  15.  * - mother [input]
  16.  * - exhibitor [input]
  17.  * - externalStatistics [input]
  18.  * - isBlacktype [booleanSelect]
  19.  * - coveringFee [quantityValue]
  20.  * - coveringFeeYear [numeric]
  21.  * - entitledToPremiums [booleanSelect]
  22.  * - birthyear [numeric]
  23.  * - height [numeric]
  24.  * - color [select]
  25.  * - price [quantityValue]
  26.  * - premiumCountry [country]
  27.  * - location [input]
  28.  * - achievements [reverseObjectRelation]
  29.  * - externalHref [input]
  30.  * - externalPicture [input]
  31.  * - externalForm [input]
  32.  * - externalBet [input]
  33.  * - owner [manyToOneRelation]
  34.  * - breeder [manyToOneRelation]
  35.  * - trainer [manyToOneRelation]
  36.  * - jockey [manyToOneRelation]
  37.  * - createdBy [manyToOneRelation]
  38.  * - racingmanager [manyToOneRelation]
  39.  * - modules [objectbricks]
  40.  * - image [image]
  41.  * - elfsight [input]
  42.  */
  43. namespace Pimcore\Model\DataObject;
  44. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  45. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  46. /**
  47. * @method static \Pimcore\Model\DataObject\Horse\Listing getList(array $config = [])
  48. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByName($value, $limit = 0, $offset = 0, $objectTypes = null)
  49. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getBySlug($value, $limit = 0, $offset = 0, $objectTypes = null)
  50. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getBySex($value, $limit = 0, $offset = 0, $objectTypes = null)
  51. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByUeln($value, $limit = 0, $offset = 0, $objectTypes = null)
  52. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByBirthday($value, $limit = 0, $offset = 0, $objectTypes = null)
  53. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByWeight($value, $limit = 0, $offset = 0, $objectTypes = null)
  54. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByOriginCountry($value, $limit = 0, $offset = 0, $objectTypes = null)
  55. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByFather($value, $limit = 0, $offset = 0, $objectTypes = null)
  56. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByMother($value, $limit = 0, $offset = 0, $objectTypes = null)
  57. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExhibitor($value, $limit = 0, $offset = 0, $objectTypes = null)
  58. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalStatistics($value, $limit = 0, $offset = 0, $objectTypes = null)
  59. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByCoveringFeeYear($value, $limit = 0, $offset = 0, $objectTypes = null)
  60. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByBirthyear($value, $limit = 0, $offset = 0, $objectTypes = null)
  61. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByHeight($value, $limit = 0, $offset = 0, $objectTypes = null)
  62. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByColor($value, $limit = 0, $offset = 0, $objectTypes = null)
  63. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByPremiumCountry($value, $limit = 0, $offset = 0, $objectTypes = null)
  64. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByLocation($value, $limit = 0, $offset = 0, $objectTypes = null)
  65. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByAchievements($value, $limit = 0, $offset = 0, $objectTypes = null)
  66. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalHref($value, $limit = 0, $offset = 0, $objectTypes = null)
  67. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalPicture($value, $limit = 0, $offset = 0, $objectTypes = null)
  68. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalForm($value, $limit = 0, $offset = 0, $objectTypes = null)
  69. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalBet($value, $limit = 0, $offset = 0, $objectTypes = null)
  70. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByOwner($value, $limit = 0, $offset = 0, $objectTypes = null)
  71. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByBreeder($value, $limit = 0, $offset = 0, $objectTypes = null)
  72. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByTrainer($value, $limit = 0, $offset = 0, $objectTypes = null)
  73. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByJockey($value, $limit = 0, $offset = 0, $objectTypes = null)
  74. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByCreatedBy($value, $limit = 0, $offset = 0, $objectTypes = null)
  75. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByRacingmanager($value, $limit = 0, $offset = 0, $objectTypes = null)
  76. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)
  77. * @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByElfsight($value, $limit = 0, $offset = 0, $objectTypes = null)
  78. */
  79. class Horse extends Concrete
  80. {
  81. use \App\Horse\Model\HorseTrait;
  82. protected $o_classId "horse";
  83. protected $o_className "Horse";
  84. protected $name;
  85. protected $slug;
  86. protected $sex;
  87. protected $ueln;
  88. protected $birthday;
  89. protected $weight;
  90. protected $originCountry;
  91. protected $father;
  92. protected $mother;
  93. protected $exhibitor;
  94. protected $externalStatistics;
  95. protected $isBlacktype;
  96. protected $coveringFee;
  97. protected $coveringFeeYear;
  98. protected $entitledToPremiums;
  99. protected $birthyear;
  100. protected $height;
  101. protected $color;
  102. protected $price;
  103. protected $premiumCountry;
  104. protected $location;
  105. protected $externalHref;
  106. protected $externalPicture;
  107. protected $externalForm;
  108. protected $externalBet;
  109. protected $owner;
  110. protected $breeder;
  111. protected $trainer;
  112. protected $jockey;
  113. protected $createdBy;
  114. protected $racingmanager;
  115. protected $modules;
  116. protected $image;
  117. protected $elfsight;
  118. /**
  119. * @param array $values
  120. * @return \Pimcore\Model\DataObject\Horse
  121. */
  122. public static function create($values = array()) {
  123.     $object = new static();
  124.     $object->setValues($values);
  125.     return $object;
  126. }
  127. /**
  128. * Get name - Name
  129. * @return string|null
  130. */
  131. public function getName()
  132. {
  133.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  134.         $preValue $this->preGetValue("name");
  135.         if ($preValue !== null) {
  136.             return $preValue;
  137.         }
  138.     }
  139.     $data $this->name;
  140.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  141.         return $data->getPlain();
  142.     }
  143.     return $data;
  144. }
  145. /**
  146. * Set name - Name
  147. * @param string|null $name
  148. * @return \Pimcore\Model\DataObject\Horse
  149. */
  150. public function setName($name)
  151. {
  152.     $this->name $name;
  153.     return $this;
  154. }
  155. /**
  156. * Get slug - Slug
  157. * @return string|null
  158. */
  159. public function getSlug()
  160. {
  161.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  162.         $preValue $this->preGetValue("slug");
  163.         if ($preValue !== null) {
  164.             return $preValue;
  165.         }
  166.     }
  167.     $data $this->slug;
  168.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  169.         return $data->getPlain();
  170.     }
  171.     return $data;
  172. }
  173. /**
  174. * Set slug - Slug
  175. * @param string|null $slug
  176. * @return \Pimcore\Model\DataObject\Horse
  177. */
  178. public function setSlug($slug)
  179. {
  180.     $this->slug $slug;
  181.     return $this;
  182. }
  183. /**
  184. * Get sex - Geschlecht
  185. * @return string|null
  186. */
  187. public function getSex()
  188. {
  189.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  190.         $preValue $this->preGetValue("sex");
  191.         if ($preValue !== null) {
  192.             return $preValue;
  193.         }
  194.     }
  195.     $data $this->sex;
  196.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  197.         return $data->getPlain();
  198.     }
  199.     return $data;
  200. }
  201. /**
  202. * Set sex - Geschlecht
  203. * @param string|null $sex
  204. * @return \Pimcore\Model\DataObject\Horse
  205. */
  206. public function setSex($sex)
  207. {
  208.     $this->sex $sex;
  209.     return $this;
  210. }
  211. /**
  212. * Get ueln - Universal Equine Life Number
  213. * @return string|null
  214. */
  215. public function getUeln()
  216. {
  217.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  218.         $preValue $this->preGetValue("ueln");
  219.         if ($preValue !== null) {
  220.             return $preValue;
  221.         }
  222.     }
  223.     $data $this->ueln;
  224.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  225.         return $data->getPlain();
  226.     }
  227.     return $data;
  228. }
  229. /**
  230. * Set ueln - Universal Equine Life Number
  231. * @param string|null $ueln
  232. * @return \Pimcore\Model\DataObject\Horse
  233. */
  234. public function setUeln($ueln)
  235. {
  236.     $this->ueln $ueln;
  237.     return $this;
  238. }
  239. /**
  240. * Get birthday - Geboren
  241. * @return \Carbon\Carbon|null
  242. */
  243. public function getBirthday()
  244. {
  245.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  246.         $preValue $this->preGetValue("birthday");
  247.         if ($preValue !== null) {
  248.             return $preValue;
  249.         }
  250.     }
  251.     $data $this->birthday;
  252.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  253.         return $data->getPlain();
  254.     }
  255.     return $data;
  256. }
  257. /**
  258. * Set birthday - Geboren
  259. * @param \Carbon\Carbon|null $birthday
  260. * @return \Pimcore\Model\DataObject\Horse
  261. */
  262. public function setBirthday($birthday)
  263. {
  264.     $this->birthday $birthday;
  265.     return $this;
  266. }
  267. /**
  268. * Get weight - Gewicht (Kg)
  269. * @return float|null
  270. */
  271. public function getWeight()
  272. {
  273.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  274.         $preValue $this->preGetValue("weight");
  275.         if ($preValue !== null) {
  276.             return $preValue;
  277.         }
  278.     }
  279.     $data $this->weight;
  280.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  281.         return $data->getPlain();
  282.     }
  283.     return $data;
  284. }
  285. /**
  286. * Set weight - Gewicht (Kg)
  287. * @param float|null $weight
  288. * @return \Pimcore\Model\DataObject\Horse
  289. */
  290. public function setWeight($weight)
  291. {
  292.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  293.     $fd $this->getClass()->getFieldDefinition("weight");
  294.     $this->weight $fd->preSetData($this$weight);
  295.     return $this;
  296. }
  297. /**
  298. * Get originCountry - Herkunftsland
  299. * @return string|null
  300. */
  301. public function getOriginCountry()
  302. {
  303.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  304.         $preValue $this->preGetValue("originCountry");
  305.         if ($preValue !== null) {
  306.             return $preValue;
  307.         }
  308.     }
  309.     $data $this->originCountry;
  310.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  311.         return $data->getPlain();
  312.     }
  313.     return $data;
  314. }
  315. /**
  316. * Set originCountry - Herkunftsland
  317. * @param string|null $originCountry
  318. * @return \Pimcore\Model\DataObject\Horse
  319. */
  320. public function setOriginCountry($originCountry)
  321. {
  322.     $this->originCountry $originCountry;
  323.     return $this;
  324. }
  325. /**
  326. * Get father - Vater
  327. * @return string|null
  328. */
  329. public function getFather()
  330. {
  331.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  332.         $preValue $this->preGetValue("father");
  333.         if ($preValue !== null) {
  334.             return $preValue;
  335.         }
  336.     }
  337.     $data $this->father;
  338.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  339.         return $data->getPlain();
  340.     }
  341.     return $data;
  342. }
  343. /**
  344. * Set father - Vater
  345. * @param string|null $father
  346. * @return \Pimcore\Model\DataObject\Horse
  347. */
  348. public function setFather($father)
  349. {
  350.     $this->father $father;
  351.     return $this;
  352. }
  353. /**
  354. * Get mother - Mutter
  355. * @return string|null
  356. */
  357. public function getMother()
  358. {
  359.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  360.         $preValue $this->preGetValue("mother");
  361.         if ($preValue !== null) {
  362.             return $preValue;
  363.         }
  364.     }
  365.     $data $this->mother;
  366.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  367.         return $data->getPlain();
  368.     }
  369.     return $data;
  370. }
  371. /**
  372. * Set mother - Mutter
  373. * @param string|null $mother
  374. * @return \Pimcore\Model\DataObject\Horse
  375. */
  376. public function setMother($mother)
  377. {
  378.     $this->mother $mother;
  379.     return $this;
  380. }
  381. /**
  382. * Get exhibitor - Aussteller
  383. * @return string|null
  384. */
  385. public function getExhibitor()
  386. {
  387.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  388.         $preValue $this->preGetValue("exhibitor");
  389.         if ($preValue !== null) {
  390.             return $preValue;
  391.         }
  392.     }
  393.     $data $this->exhibitor;
  394.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  395.         return $data->getPlain();
  396.     }
  397.     return $data;
  398. }
  399. /**
  400. * Set exhibitor - Aussteller
  401. * @param string|null $exhibitor
  402. * @return \Pimcore\Model\DataObject\Horse
  403. */
  404. public function setExhibitor($exhibitor)
  405. {
  406.     $this->exhibitor $exhibitor;
  407.     return $this;
  408. }
  409. /**
  410. * Get externalStatistics - Externe Statistiken
  411. * @return string|null
  412. */
  413. public function getExternalStatistics()
  414. {
  415.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  416.         $preValue $this->preGetValue("externalStatistics");
  417.         if ($preValue !== null) {
  418.             return $preValue;
  419.         }
  420.     }
  421.     $data $this->externalStatistics;
  422.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  423.         return $data->getPlain();
  424.     }
  425.     return $data;
  426. }
  427. /**
  428. * Set externalStatistics - Externe Statistiken
  429. * @param string|null $externalStatistics
  430. * @return \Pimcore\Model\DataObject\Horse
  431. */
  432. public function setExternalStatistics($externalStatistics)
  433. {
  434.     $this->externalStatistics $externalStatistics;
  435.     return $this;
  436. }
  437. /**
  438. * Get isBlacktype - Blacktype ja/nein
  439. * @return bool|null
  440. */
  441. public function getIsBlacktype()
  442. {
  443.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  444.         $preValue $this->preGetValue("isBlacktype");
  445.         if ($preValue !== null) {
  446.             return $preValue;
  447.         }
  448.     }
  449.     $data $this->isBlacktype;
  450.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  451.         return $data->getPlain();
  452.     }
  453.     return $data;
  454. }
  455. /**
  456. * Set isBlacktype - Blacktype ja/nein
  457. * @param bool|null $isBlacktype
  458. * @return \Pimcore\Model\DataObject\Horse
  459. */
  460. public function setIsBlacktype($isBlacktype)
  461. {
  462.     $this->isBlacktype $isBlacktype;
  463.     return $this;
  464. }
  465. /**
  466. * Get coveringFee - Decktaxe
  467. * @return \Pimcore\Model\DataObject\Data\QuantityValue|null
  468. */
  469. public function getCoveringFee()
  470. {
  471.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  472.         $preValue $this->preGetValue("coveringFee");
  473.         if ($preValue !== null) {
  474.             return $preValue;
  475.         }
  476.     }
  477.     $data $this->coveringFee;
  478.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  479.         return $data->getPlain();
  480.     }
  481.     return $data;
  482. }
  483. /**
  484. * Set coveringFee - Decktaxe
  485. * @param \Pimcore\Model\DataObject\Data\QuantityValue|null $coveringFee
  486. * @return \Pimcore\Model\DataObject\Horse
  487. */
  488. public function setCoveringFee($coveringFee)
  489. {
  490.     $this->coveringFee $coveringFee;
  491.     return $this;
  492. }
  493. /**
  494. * Get coveringFeeYear - coveringFeeYear
  495. * @return float|null
  496. */
  497. public function getCoveringFeeYear()
  498. {
  499.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  500.         $preValue $this->preGetValue("coveringFeeYear");
  501.         if ($preValue !== null) {
  502.             return $preValue;
  503.         }
  504.     }
  505.     $data $this->coveringFeeYear;
  506.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  507.         return $data->getPlain();
  508.     }
  509.     return $data;
  510. }
  511. /**
  512. * Set coveringFeeYear - coveringFeeYear
  513. * @param float|null $coveringFeeYear
  514. * @return \Pimcore\Model\DataObject\Horse
  515. */
  516. public function setCoveringFeeYear($coveringFeeYear)
  517. {
  518.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  519.     $fd $this->getClass()->getFieldDefinition("coveringFeeYear");
  520.     $this->coveringFeeYear $fd->preSetData($this$coveringFeeYear);
  521.     return $this;
  522. }
  523. /**
  524. * Get entitledToPremiums - Prämienberechtigung
  525. * @return bool|null
  526. */
  527. public function getEntitledToPremiums()
  528. {
  529.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  530.         $preValue $this->preGetValue("entitledToPremiums");
  531.         if ($preValue !== null) {
  532.             return $preValue;
  533.         }
  534.     }
  535.     $data $this->entitledToPremiums;
  536.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  537.         return $data->getPlain();
  538.     }
  539.     return $data;
  540. }
  541. /**
  542. * Set entitledToPremiums - Prämienberechtigung
  543. * @param bool|null $entitledToPremiums
  544. * @return \Pimcore\Model\DataObject\Horse
  545. */
  546. public function setEntitledToPremiums($entitledToPremiums)
  547. {
  548.     $this->entitledToPremiums $entitledToPremiums;
  549.     return $this;
  550. }
  551. /**
  552. * Get birthyear - birthyear
  553. * @return float|null
  554. */
  555. public function getBirthyear()
  556. {
  557.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  558.         $preValue $this->preGetValue("birthyear");
  559.         if ($preValue !== null) {
  560.             return $preValue;
  561.         }
  562.     }
  563.     $data $this->birthyear;
  564.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  565.         return $data->getPlain();
  566.     }
  567.     return $data;
  568. }
  569. /**
  570. * Set birthyear - birthyear
  571. * @param float|null $birthyear
  572. * @return \Pimcore\Model\DataObject\Horse
  573. */
  574. public function setBirthyear($birthyear)
  575. {
  576.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  577.     $fd $this->getClass()->getFieldDefinition("birthyear");
  578.     $this->birthyear $fd->preSetData($this$birthyear);
  579.     return $this;
  580. }
  581. /**
  582. * Get height - Stockmaß (cm)
  583. * @return float|null
  584. */
  585. public function getHeight()
  586. {
  587.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  588.         $preValue $this->preGetValue("height");
  589.         if ($preValue !== null) {
  590.             return $preValue;
  591.         }
  592.     }
  593.     $data $this->height;
  594.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  595.         return $data->getPlain();
  596.     }
  597.     return $data;
  598. }
  599. /**
  600. * Set height - Stockmaß (cm)
  601. * @param float|null $height
  602. * @return \Pimcore\Model\DataObject\Horse
  603. */
  604. public function setHeight($height)
  605. {
  606.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  607.     $fd $this->getClass()->getFieldDefinition("height");
  608.     $this->height $fd->preSetData($this$height);
  609.     return $this;
  610. }
  611. /**
  612. * Get color - Farbe
  613. * @return string|null
  614. */
  615. public function getColor()
  616. {
  617.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  618.         $preValue $this->preGetValue("color");
  619.         if ($preValue !== null) {
  620.             return $preValue;
  621.         }
  622.     }
  623.     $data $this->color;
  624.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  625.         return $data->getPlain();
  626.     }
  627.     return $data;
  628. }
  629. /**
  630. * Set color - Farbe
  631. * @param string|null $color
  632. * @return \Pimcore\Model\DataObject\Horse
  633. */
  634. public function setColor($color)
  635. {
  636.     $this->color $color;
  637.     return $this;
  638. }
  639. /**
  640. * Get price - Verkaufspreis
  641. * @return \Pimcore\Model\DataObject\Data\QuantityValue|null
  642. */
  643. public function getPrice()
  644. {
  645.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  646.         $preValue $this->preGetValue("price");
  647.         if ($preValue !== null) {
  648.             return $preValue;
  649.         }
  650.     }
  651.     $data $this->price;
  652.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  653.         return $data->getPlain();
  654.     }
  655.     return $data;
  656. }
  657. /**
  658. * Set price - Verkaufspreis
  659. * @param \Pimcore\Model\DataObject\Data\QuantityValue|null $price
  660. * @return \Pimcore\Model\DataObject\Horse
  661. */
  662. public function setPrice($price)
  663. {
  664.     $this->price $price;
  665.     return $this;
  666. }
  667. /**
  668. * Get premiumCountry - premiumCountry
  669. * @return string|null
  670. */
  671. public function getPremiumCountry()
  672. {
  673.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  674.         $preValue $this->preGetValue("premiumCountry");
  675.         if ($preValue !== null) {
  676.             return $preValue;
  677.         }
  678.     }
  679.     $data $this->premiumCountry;
  680.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  681.         return $data->getPlain();
  682.     }
  683.     return $data;
  684. }
  685. /**
  686. * Set premiumCountry - premiumCountry
  687. * @param string|null $premiumCountry
  688. * @return \Pimcore\Model\DataObject\Horse
  689. */
  690. public function setPremiumCountry($premiumCountry)
  691. {
  692.     $this->premiumCountry $premiumCountry;
  693.     return $this;
  694. }
  695. /**
  696. * Get location - Standort
  697. * @return string|null
  698. */
  699. public function getLocation()
  700. {
  701.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  702.         $preValue $this->preGetValue("location");
  703.         if ($preValue !== null) {
  704.             return $preValue;
  705.         }
  706.     }
  707.     $data $this->location;
  708.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  709.         return $data->getPlain();
  710.     }
  711.     return $data;
  712. }
  713. /**
  714. * Set location - Standort
  715. * @param string|null $location
  716. * @return \Pimcore\Model\DataObject\Horse
  717. */
  718. public function setLocation($location)
  719. {
  720.     $this->location $location;
  721.     return $this;
  722. }
  723. /**
  724. * Get achievements - Erfolge
  725. * @return \Pimcore\Model\DataObject\AbstractObject[]
  726. */
  727. public function getAchievements()
  728. {
  729.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  730.         $preValue $this->preGetValue("achievements");
  731.         if ($preValue !== null) {
  732.             return $preValue;
  733.         }
  734.     }
  735.     $data $this->getClass()->getFieldDefinition("achievements")->preGetData($this);
  736.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  737.         return $data->getPlain();
  738.     }
  739.     return $data;
  740. }
  741. /**
  742. * Get externalHref - Externe Verlinkung
  743. * @return string|null
  744. */
  745. public function getExternalHref()
  746. {
  747.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  748.         $preValue $this->preGetValue("externalHref");
  749.         if ($preValue !== null) {
  750.             return $preValue;
  751.         }
  752.     }
  753.     $data $this->externalHref;
  754.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  755.         return $data->getPlain();
  756.     }
  757.     return $data;
  758. }
  759. /**
  760. * Set externalHref - Externe Verlinkung
  761. * @param string|null $externalHref
  762. * @return \Pimcore\Model\DataObject\Horse
  763. */
  764. public function setExternalHref($externalHref)
  765. {
  766.     $this->externalHref $externalHref;
  767.     return $this;
  768. }
  769. /**
  770. * Get externalPicture - Externes Fotos
  771. * @return string|null
  772. */
  773. public function getExternalPicture()
  774. {
  775.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  776.         $preValue $this->preGetValue("externalPicture");
  777.         if ($preValue !== null) {
  778.             return $preValue;
  779.         }
  780.     }
  781.     $data $this->externalPicture;
  782.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  783.         return $data->getPlain();
  784.     }
  785.     return $data;
  786. }
  787. /**
  788. * Set externalPicture - Externes Fotos
  789. * @param string|null $externalPicture
  790. * @return \Pimcore\Model\DataObject\Horse
  791. */
  792. public function setExternalPicture($externalPicture)
  793. {
  794.     $this->externalPicture $externalPicture;
  795.     return $this;
  796. }
  797. /**
  798. * Get externalForm - Externe Form
  799. * @return string|null
  800. */
  801. public function getExternalForm()
  802. {
  803.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  804.         $preValue $this->preGetValue("externalForm");
  805.         if ($preValue !== null) {
  806.             return $preValue;
  807.         }
  808.     }
  809.     $data $this->externalForm;
  810.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  811.         return $data->getPlain();
  812.     }
  813.     return $data;
  814. }
  815. /**
  816. * Set externalForm - Externe Form
  817. * @param string|null $externalForm
  818. * @return \Pimcore\Model\DataObject\Horse
  819. */
  820. public function setExternalForm($externalForm)
  821. {
  822.     $this->externalForm $externalForm;
  823.     return $this;
  824. }
  825. /**
  826. * Get externalBet - Externe Wette
  827. * @return string|null
  828. */
  829. public function getExternalBet()
  830. {
  831.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  832.         $preValue $this->preGetValue("externalBet");
  833.         if ($preValue !== null) {
  834.             return $preValue;
  835.         }
  836.     }
  837.     $data $this->externalBet;
  838.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  839.         return $data->getPlain();
  840.     }
  841.     return $data;
  842. }
  843. /**
  844. * Set externalBet - Externe Wette
  845. * @param string|null $externalBet
  846. * @return \Pimcore\Model\DataObject\Horse
  847. */
  848. public function setExternalBet($externalBet)
  849. {
  850.     $this->externalBet $externalBet;
  851.     return $this;
  852. }
  853. /**
  854. * Get owner - Besitzer
  855. * @return \Pimcore\Model\DataObject\Owner | \Pimcore\Model\DataObject\Studfarm | \Pimcore\Model\DataObject\Profile|null
  856. */
  857. public function getOwner()
  858. {
  859.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  860.         $preValue $this->preGetValue("owner");
  861.         if ($preValue !== null) {
  862.             return $preValue;
  863.         }
  864.     }
  865.     $data $this->getClass()->getFieldDefinition("owner")->preGetData($this);
  866.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  867.         return $data->getPlain();
  868.     }
  869.     return $data;
  870. }
  871. /**
  872. * Set owner - Besitzer
  873. * @param \Pimcore\Model\DataObject\Owner | \Pimcore\Model\DataObject\Studfarm | \Pimcore\Model\DataObject\Profile $owner
  874. * @return \Pimcore\Model\DataObject\Horse
  875. */
  876. public function setOwner($owner)
  877. {
  878.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  879.     $fd $this->getClass()->getFieldDefinition("owner");
  880.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  881.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  882.     $currentData $this->getOwner();
  883.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  884.     $isEqual $fd->isEqual($currentData$owner);
  885.     if (!$isEqual) {
  886.         $this->markFieldDirty("owner"true);
  887.     }
  888.     $this->owner $fd->preSetData($this$owner);
  889.     return $this;
  890. }
  891. /**
  892. * Get breeder - Züchter
  893. * @return \Pimcore\Model\DataObject\Profile|null
  894. */
  895. public function getBreeder()
  896. {
  897.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  898.         $preValue $this->preGetValue("breeder");
  899.         if ($preValue !== null) {
  900.             return $preValue;
  901.         }
  902.     }
  903.     $data $this->getClass()->getFieldDefinition("breeder")->preGetData($this);
  904.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  905.         return $data->getPlain();
  906.     }
  907.     return $data;
  908. }
  909. /**
  910. * Set breeder - Züchter
  911. * @param \Pimcore\Model\DataObject\Profile $breeder
  912. * @return \Pimcore\Model\DataObject\Horse
  913. */
  914. public function setBreeder($breeder)
  915. {
  916.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  917.     $fd $this->getClass()->getFieldDefinition("breeder");
  918.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  919.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  920.     $currentData $this->getBreeder();
  921.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  922.     $isEqual $fd->isEqual($currentData$breeder);
  923.     if (!$isEqual) {
  924.         $this->markFieldDirty("breeder"true);
  925.     }
  926.     $this->breeder $fd->preSetData($this$breeder);
  927.     return $this;
  928. }
  929. /**
  930. * Get trainer - Trainer
  931. * @return \Pimcore\Model\DataObject\Trainer | \Pimcore\Model\DataObject\Profile|null
  932. */
  933. public function getTrainer()
  934. {
  935.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  936.         $preValue $this->preGetValue("trainer");
  937.         if ($preValue !== null) {
  938.             return $preValue;
  939.         }
  940.     }
  941.     $data $this->getClass()->getFieldDefinition("trainer")->preGetData($this);
  942.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  943.         return $data->getPlain();
  944.     }
  945.     return $data;
  946. }
  947. /**
  948. * Set trainer - Trainer
  949. * @param \Pimcore\Model\DataObject\Trainer | \Pimcore\Model\DataObject\Profile $trainer
  950. * @return \Pimcore\Model\DataObject\Horse
  951. */
  952. public function setTrainer($trainer)
  953. {
  954.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  955.     $fd $this->getClass()->getFieldDefinition("trainer");
  956.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  957.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  958.     $currentData $this->getTrainer();
  959.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  960.     $isEqual $fd->isEqual($currentData$trainer);
  961.     if (!$isEqual) {
  962.         $this->markFieldDirty("trainer"true);
  963.     }
  964.     $this->trainer $fd->preSetData($this$trainer);
  965.     return $this;
  966. }
  967. /**
  968. * Get jockey - Jockey
  969. * @return \Pimcore\Model\DataObject\Jockey | \Pimcore\Model\DataObject\Profile|null
  970. */
  971. public function getJockey()
  972. {
  973.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  974.         $preValue $this->preGetValue("jockey");
  975.         if ($preValue !== null) {
  976.             return $preValue;
  977.         }
  978.     }
  979.     $data $this->getClass()->getFieldDefinition("jockey")->preGetData($this);
  980.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  981.         return $data->getPlain();
  982.     }
  983.     return $data;
  984. }
  985. /**
  986. * Set jockey - Jockey
  987. * @param \Pimcore\Model\DataObject\Jockey | \Pimcore\Model\DataObject\Profile $jockey
  988. * @return \Pimcore\Model\DataObject\Horse
  989. */
  990. public function setJockey($jockey)
  991. {
  992.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  993.     $fd $this->getClass()->getFieldDefinition("jockey");
  994.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  995.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  996.     $currentData $this->getJockey();
  997.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  998.     $isEqual $fd->isEqual($currentData$jockey);
  999.     if (!$isEqual) {
  1000.         $this->markFieldDirty("jockey"true);
  1001.     }
  1002.     $this->jockey $fd->preSetData($this$jockey);
  1003.     return $this;
  1004. }
  1005. /**
  1006. * Get createdBy - Erstellt von
  1007. * @return \Pimcore\Model\DataObject\Profile|null
  1008. */
  1009. public function getCreatedBy()
  1010. {
  1011.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1012.         $preValue $this->preGetValue("createdBy");
  1013.         if ($preValue !== null) {
  1014.             return $preValue;
  1015.         }
  1016.     }
  1017.     $data $this->getClass()->getFieldDefinition("createdBy")->preGetData($this);
  1018.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1019.         return $data->getPlain();
  1020.     }
  1021.     return $data;
  1022. }
  1023. /**
  1024. * Set createdBy - Erstellt von
  1025. * @param \Pimcore\Model\DataObject\Profile $createdBy
  1026. * @return \Pimcore\Model\DataObject\Horse
  1027. */
  1028. public function setCreatedBy($createdBy)
  1029. {
  1030.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1031.     $fd $this->getClass()->getFieldDefinition("createdBy");
  1032.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1033.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1034.     $currentData $this->getCreatedBy();
  1035.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1036.     $isEqual $fd->isEqual($currentData$createdBy);
  1037.     if (!$isEqual) {
  1038.         $this->markFieldDirty("createdBy"true);
  1039.     }
  1040.     $this->createdBy $fd->preSetData($this$createdBy);
  1041.     return $this;
  1042. }
  1043. /**
  1044. * Get racingmanager - Racingmanager
  1045. * @return \Pimcore\Model\DataObject\Profile|null
  1046. */
  1047. public function getRacingmanager()
  1048. {
  1049.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1050.         $preValue $this->preGetValue("racingmanager");
  1051.         if ($preValue !== null) {
  1052.             return $preValue;
  1053.         }
  1054.     }
  1055.     $data $this->getClass()->getFieldDefinition("racingmanager")->preGetData($this);
  1056.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1057.         return $data->getPlain();
  1058.     }
  1059.     return $data;
  1060. }
  1061. /**
  1062. * Set racingmanager - Racingmanager
  1063. * @param \Pimcore\Model\DataObject\Profile $racingmanager
  1064. * @return \Pimcore\Model\DataObject\Horse
  1065. */
  1066. public function setRacingmanager($racingmanager)
  1067. {
  1068.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1069.     $fd $this->getClass()->getFieldDefinition("racingmanager");
  1070.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1071.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1072.     $currentData $this->getRacingmanager();
  1073.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1074.     $isEqual $fd->isEqual($currentData$racingmanager);
  1075.     if (!$isEqual) {
  1076.         $this->markFieldDirty("racingmanager"true);
  1077.     }
  1078.     $this->racingmanager $fd->preSetData($this$racingmanager);
  1079.     return $this;
  1080. }
  1081. /**
  1082. * @return \Pimcore\Model\DataObject\Horse\Modules
  1083. */
  1084. public function getModules()
  1085. {
  1086.     $data $this->modules;
  1087.     if (!$data) {
  1088.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Horse\\Modules")) {
  1089.             $data = new \Pimcore\Model\DataObject\Horse\Modules($this"modules");
  1090.             $this->modules $data;
  1091.         } else {
  1092.             return null;
  1093.         }
  1094.     }
  1095.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1096.         $preValue $this->preGetValue("modules");
  1097.         if ($preValue !== null) {
  1098.             return $preValue;
  1099.         }
  1100.     }
  1101.     return $data;
  1102. }
  1103. /**
  1104. * Set modules - 
  1105. * @param \Pimcore\Model\DataObject\Objectbrick|null $modules
  1106. * @return \Pimcore\Model\DataObject\Horse
  1107. */
  1108. public function setModules($modules)
  1109. {
  1110.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  1111.     $fd $this->getClass()->getFieldDefinition("modules");
  1112.     $this->modules $fd->preSetData($this$modules);
  1113.     return $this;
  1114. }
  1115. /**
  1116. * Get image - Bild
  1117. * @return \Pimcore\Model\Asset\Image|null
  1118. */
  1119. public function getImage()
  1120. {
  1121.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1122.         $preValue $this->preGetValue("image");
  1123.         if ($preValue !== null) {
  1124.             return $preValue;
  1125.         }
  1126.     }
  1127.     $data $this->image;
  1128.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1129.         return $data->getPlain();
  1130.     }
  1131.     return $data;
  1132. }
  1133. /**
  1134. * Set image - Bild
  1135. * @param \Pimcore\Model\Asset\Image|null $image
  1136. * @return \Pimcore\Model\DataObject\Horse
  1137. */
  1138. public function setImage($image)
  1139. {
  1140.     $this->image $image;
  1141.     return $this;
  1142. }
  1143. /**
  1144. * Get elfsight - Elfsight
  1145. * @return string|null
  1146. */
  1147. public function getElfsight()
  1148. {
  1149.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1150.         $preValue $this->preGetValue("elfsight");
  1151.         if ($preValue !== null) {
  1152.             return $preValue;
  1153.         }
  1154.     }
  1155.     $data $this->elfsight;
  1156.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1157.         return $data->getPlain();
  1158.     }
  1159.     return $data;
  1160. }
  1161. /**
  1162. * Set elfsight - Elfsight
  1163. * @param string|null $elfsight
  1164. * @return \Pimcore\Model\DataObject\Horse
  1165. */
  1166. public function setElfsight($elfsight)
  1167. {
  1168.     $this->elfsight $elfsight;
  1169.     return $this;
  1170. }
  1171. }