TimestampableFixtureArticleProxy.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. namespace Gedmo\Timestampable\Proxies;
  3. /**
  4. * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
  5. */
  6. class TimestampableFixtureArticleProxy extends \Timestampable\Fixture\Article implements \Doctrine\ORM\Proxy\Proxy
  7. {
  8. private $_entityPersister;
  9. private $_identifier;
  10. public $__isInitialized__ = false;
  11. public function __construct($entityPersister, $identifier)
  12. {
  13. $this->_entityPersister = $entityPersister;
  14. $this->_identifier = $identifier;
  15. }
  16. private function _load()
  17. {
  18. if (!$this->__isInitialized__ && $this->_entityPersister) {
  19. $this->__isInitialized__ = true;
  20. if ($this->_entityPersister->load($this->_identifier, $this) === null) {
  21. throw new \Doctrine\ORM\EntityNotFoundException();
  22. }
  23. unset($this->_entityPersister, $this->_identifier);
  24. }
  25. }
  26. public function setType($type)
  27. {
  28. $this->_load();
  29. return parent::setType($type);
  30. }
  31. public function getId()
  32. {
  33. $this->_load();
  34. return parent::getId();
  35. }
  36. public function setTitle($title)
  37. {
  38. $this->_load();
  39. return parent::setTitle($title);
  40. }
  41. public function getTitle()
  42. {
  43. $this->_load();
  44. return parent::getTitle();
  45. }
  46. public function addComment(\Timestampable\Fixture\Comment $comment)
  47. {
  48. $this->_load();
  49. return parent::addComment($comment);
  50. }
  51. public function getComments()
  52. {
  53. $this->_load();
  54. return parent::getComments();
  55. }
  56. public function getCreated()
  57. {
  58. $this->_load();
  59. return parent::getCreated();
  60. }
  61. public function getPublished()
  62. {
  63. $this->_load();
  64. return parent::getPublished();
  65. }
  66. public function getUpdated()
  67. {
  68. $this->_load();
  69. return parent::getUpdated();
  70. }
  71. public function __sleep()
  72. {
  73. return array('__isInitialized__', 'id', 'title', 'comments', 'created', 'updated', 'published', 'type');
  74. }
  75. }