<?php

namespace Proxies\__CG__\OfficeBrain\Bundle\BlogBundle\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Post extends \OfficeBrain\Bundle\BlogBundle\Entity\Post implements \Doctrine\ORM\Proxy\Proxy
{
    /**
     * @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
     *      three parameters, being respectively the proxy object to be initialized, the method that triggered the
     *      initialization process and an array of ordered parameters that were passed to that method.
     *
     * @see \Doctrine\Common\Persistence\Proxy::__setInitializer
     */
    public $__initializer__;

    /**
     * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
     *
     * @see \Doctrine\Common\Persistence\Proxy::__setCloner
     */
    public $__cloner__;

    /**
     * @var boolean flag indicating if this object was already initialized
     *
     * @see \Doctrine\Common\Persistence\Proxy::__isInitialized
     */
    public $__isInitialized__ = false;

    /**
     * @var array properties to be lazy loaded, with keys being the property
     *            names and values being their default values
     *
     * @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
     */
    public static $lazyPropertiesDefaults = [];



    /**
     * @param \Closure $initializer
     * @param \Closure $cloner
     */
    public function __construct($initializer = null, $cloner = null)
    {

        $this->__initializer__ = $initializer;
        $this->__cloner__      = $cloner;
    }







    /**
     * 
     * @return array
     */
    public function __sleep()
    {
        if ($this->__isInitialized__) {
            return ['__isInitialized__', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'id', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postName', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'slug', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'shortContent', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postContent', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'metaTitle', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'metaDesc', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'publishedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'featureImage', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postStatus', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postCreatedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postUpdatedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postIsDeleted', 'postCategoryInfo', 'postTagInfo', 'comment', 'postCategoryId', 'postTagId'];
        }

        return ['__isInitialized__', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'id', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postName', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'slug', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'shortContent', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postContent', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'metaTitle', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'metaDesc', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'publishedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'featureImage', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postStatus', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postCreatedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postUpdatedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Post' . "\0" . 'postIsDeleted', 'postCategoryInfo', 'postTagInfo', 'comment', 'postCategoryId', 'postTagId'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (Post $proxy) {
                $proxy->__setInitializer(null);
                $proxy->__setCloner(null);

                $existingProperties = get_object_vars($proxy);

                foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
                    if ( ! array_key_exists($property, $existingProperties)) {
                        $proxy->$property = $defaultValue;
                    }
                }
            };

        }
    }

    /**
     * 
     */
    public function __clone()
    {
        $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
    }

    /**
     * Forces initialization of the proxy
     */
    public function __load()
    {
        $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __isInitialized()
    {
        return $this->__isInitialized__;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __setInitialized($initialized)
    {
        $this->__isInitialized__ = $initialized;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __setInitializer(\Closure $initializer = null)
    {
        $this->__initializer__ = $initializer;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __getInitializer()
    {
        return $this->__initializer__;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     */
    public function __setCloner(\Closure $cloner = null)
    {
        $this->__cloner__ = $cloner;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific cloning logic
     */
    public function __getCloner()
    {
        return $this->__cloner__;
    }

    /**
     * {@inheritDoc}
     * @internal generated method: use only when explicitly handling proxy specific loading logic
     * @static
     */
    public function __getLazyProperties()
    {
        return self::$lazyPropertiesDefaults;
    }

    
    /**
     * {@inheritDoc}
     */
    public function getPostCategoryId()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostCategoryId', []);

        return parent::getPostCategoryId();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostCategoryId($postCategoryId)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostCategoryId', [$postCategoryId]);

        return parent::setPostCategoryId($postCategoryId);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostTagId()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostTagId', []);

        return parent::getPostTagId();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostTagId($postTagId)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostTagId', [$postTagId]);

        return parent::setPostTagId($postTagId);
    }

    /**
     * {@inheritDoc}
     */
    public function getId()
    {
        if ($this->__isInitialized__ === false) {
            return (int)  parent::getId();
        }


        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);

        return parent::getId();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostName($postName)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostName', [$postName]);

        return parent::setPostName($postName);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostName()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostName', []);

        return parent::getPostName();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostTitle($postTitle)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostTitle', [$postTitle]);

        return parent::setPostTitle($postTitle);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostTitle()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostTitle', []);

        return parent::getPostTitle();
    }

    /**
     * {@inheritDoc}
     */
    public function setShortContent($postContent)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setShortContent', [$postContent]);

        return parent::setShortContent($postContent);
    }

    /**
     * {@inheritDoc}
     */
    public function getShortContent()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getShortContent', []);

        return parent::getShortContent();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostContent($postContent)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostContent', [$postContent]);

        return parent::setPostContent($postContent);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostContent()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostContent', []);

        return parent::getPostContent();
    }

    /**
     * {@inheritDoc}
     */
    public function setMetaTitle($metaTitle)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setMetaTitle', [$metaTitle]);

        return parent::setMetaTitle($metaTitle);
    }

    /**
     * {@inheritDoc}
     */
    public function getMetaTitle()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getMetaTitle', []);

        return parent::getMetaTitle();
    }

    /**
     * {@inheritDoc}
     */
    public function setMetaDesc($metaDesc)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setMetaDesc', [$metaDesc]);

        return parent::setMetaDesc($metaDesc);
    }

    /**
     * {@inheritDoc}
     */
    public function getMetaDesc()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getMetaDesc', []);

        return parent::getMetaDesc();
    }

    /**
     * {@inheritDoc}
     */
    public function setPublishedDate($publishedDate)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPublishedDate', [$publishedDate]);

        return parent::setPublishedDate($publishedDate);
    }

    /**
     * {@inheritDoc}
     */
    public function getPublishedDate()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPublishedDate', []);

        return parent::getPublishedDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setFeatureImage($featureImage)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setFeatureImage', [$featureImage]);

        return parent::setFeatureImage($featureImage);
    }

    /**
     * {@inheritDoc}
     */
    public function getFeatureImage()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getFeatureImage', []);

        return parent::getFeatureImage();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostStatus($postStatus)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostStatus', [$postStatus]);

        return parent::setPostStatus($postStatus);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostStatus()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostStatus', []);

        return parent::getPostStatus();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostCreatedDate($postCreatedDate)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostCreatedDate', [$postCreatedDate]);

        return parent::setPostCreatedDate($postCreatedDate);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostCreatedDate()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostCreatedDate', []);

        return parent::getPostCreatedDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostUpdatedDate($postUpdatedDate)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostUpdatedDate', [$postUpdatedDate]);

        return parent::setPostUpdatedDate($postUpdatedDate);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostUpdatedDate()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostUpdatedDate', []);

        return parent::getPostUpdatedDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostIsDeleted($postIsDeleted)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostIsDeleted', [$postIsDeleted]);

        return parent::setPostIsDeleted($postIsDeleted);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostIsDeleted()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostIsDeleted', []);

        return parent::getPostIsDeleted();
    }

    /**
     * {@inheritDoc}
     */
    public function addPostCategoryInfo(\OfficeBrain\Bundle\BlogBundle\Entity\PostCategoryInfo $postCategoryInfo)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addPostCategoryInfo', [$postCategoryInfo]);

        return parent::addPostCategoryInfo($postCategoryInfo);
    }

    /**
     * {@inheritDoc}
     */
    public function removePostCategoryInfo(\OfficeBrain\Bundle\BlogBundle\Entity\PostCategoryInfo $postCategoryInfo)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removePostCategoryInfo', [$postCategoryInfo]);

        return parent::removePostCategoryInfo($postCategoryInfo);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostCategoryInfo()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostCategoryInfo', []);

        return parent::getPostCategoryInfo();
    }

    /**
     * {@inheritDoc}
     */
    public function addPostTagInfo(\OfficeBrain\Bundle\BlogBundle\Entity\PostTagInfo $postTagInfo)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addPostTagInfo', [$postTagInfo]);

        return parent::addPostTagInfo($postTagInfo);
    }

    /**
     * {@inheritDoc}
     */
    public function removePostTagInfo(\OfficeBrain\Bundle\BlogBundle\Entity\PostTagInfo $postTagInfo)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removePostTagInfo', [$postTagInfo]);

        return parent::removePostTagInfo($postTagInfo);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostTagInfo()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostTagInfo', []);

        return parent::getPostTagInfo();
    }

    /**
     * {@inheritDoc}
     */
    public function getSlug()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSlug', []);

        return parent::getSlug();
    }

    /**
     * {@inheritDoc}
     */
    public function setSlug($slug)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSlug', [$slug]);

        return parent::setSlug($slug);
    }

    /**
     * {@inheritDoc}
     */
    public function addComment(\OfficeBrain\Bundle\BlogBundle\Entity\Comment $comment)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addComment', [$comment]);

        return parent::addComment($comment);
    }

    /**
     * {@inheritDoc}
     */
    public function removeComment(\OfficeBrain\Bundle\BlogBundle\Entity\Comment $comment)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeComment', [$comment]);

        return parent::removeComment($comment);
    }

    /**
     * {@inheritDoc}
     */
    public function getComment()
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getComment', []);

        return parent::getComment();
    }

}
