<?php

namespace Proxies\__CG__\Fishman\NotificationBundle\Entity;

/**
 * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
 */
class Notificationscheduling extends \Fishman\NotificationBundle\Entity\Notificationscheduling implements \Doctrine\ORM\Proxy\Proxy
{
    private $_entityPersister;
    private $_identifier;
    public $__isInitialized__ = false;
    public function __construct($entityPersister, $identifier)
    {
        $this->_entityPersister = $entityPersister;
        $this->_identifier = $identifier;
    }
    /** @private */
    public function __load()
    {
        if (!$this->__isInitialized__ && $this->_entityPersister) {
            $this->__isInitialized__ = true;

            if (method_exists($this, "__wakeup")) {
                // call this after __isInitialized__to avoid infinite recursion
                // but before loading to emulate what ClassMetadata::newInstance()
                // provides.
                $this->__wakeup();
            }

            if ($this->_entityPersister->load($this->_identifier, $this) === null) {
                throw new \Doctrine\ORM\EntityNotFoundException();
            }
            unset($this->_entityPersister, $this->_identifier);
        }
    }

    /** @private */
    public function __isInitialized()
    {
        return $this->__isInitialized__;
    }

    
    public function getId()
    {
        if ($this->__isInitialized__ === false) {
            return (int) $this->_identifier["id"];
        }
        $this->__load();
        return parent::getId();
    }

    public function setHead($head)
    {
        $this->__load();
        return parent::setHead($head);
    }

    public function getHead()
    {
        $this->__load();
        return parent::getHead();
    }

    public function setName($name)
    {
        $this->__load();
        return parent::setName($name);
    }

    public function getName()
    {
        $this->__load();
        return parent::getName();
    }

    public function setEntityId($entityId)
    {
        $this->__load();
        return parent::setEntityId($entityId);
    }

    public function getEntityId()
    {
        $this->__load();
        return parent::getEntityId();
    }

    public function setEntityType($entityType)
    {
        $this->__load();
        return parent::setEntityType($entityType);
    }

    public function getEntityType()
    {
        $this->__load();
        return parent::getEntityType();
    }

    public function setEntityName($entityName)
    {
        $this->__load();
        return parent::setEntityName($entityName);
    }

    public function getEntityName()
    {
        $this->__load();
        return parent::getEntityName();
    }

    public function setEntityStatus($entityStatus)
    {
        $this->__load();
        return parent::setEntityStatus($entityStatus);
    }

    public function getEntityStatus()
    {
        $this->__load();
        return parent::getEntityStatus();
    }

    public function setSubject($subject)
    {
        $this->__load();
        return parent::setSubject($subject);
    }

    public function getSubject()
    {
        $this->__load();
        return parent::getSubject();
    }

    public function setMessage($message)
    {
        $this->__load();
        return parent::setMessage($message);
    }

    public function getMessage()
    {
        $this->__load();
        return parent::getMessage();
    }

    public function setExecutionType($executionType)
    {
        $this->__load();
        return parent::setExecutionType($executionType);
    }

    public function getExecutionType()
    {
        $this->__load();
        return parent::getExecutionType();
    }

    public function setSelectedTrigger($selectedTrigger)
    {
        $this->__load();
        return parent::setSelectedTrigger($selectedTrigger);
    }

    public function getSelectedTrigger()
    {
        $this->__load();
        return parent::getSelectedTrigger();
    }

    public function setSince($since)
    {
        $this->__load();
        return parent::setSince($since);
    }

    public function getSince()
    {
        $this->__load();
        return parent::getSince();
    }

    public function setPredecessor($predecessor)
    {
        $this->__load();
        return parent::setPredecessor($predecessor);
    }

    public function getPredecessor()
    {
        $this->__load();
        return parent::getPredecessor();
    }

    public function setReplay($replay)
    {
        $this->__load();
        return parent::setReplay($replay);
    }

    public function getReplay()
    {
        $this->__load();
        return parent::getReplay();
    }

    public function setFinish($finish)
    {
        $this->__load();
        return parent::setFinish($finish);
    }

    public function getFinish()
    {
        $this->__load();
        return parent::getFinish();
    }

    public function setRepeatPeriod($repeatPeriod)
    {
        $this->__load();
        return parent::setRepeatPeriod($repeatPeriod);
    }

    public function getRepeatPeriod()
    {
        $this->__load();
        return parent::getRepeatPeriod();
    }

    public function setRepeatRange($repeatRange)
    {
        $this->__load();
        return parent::setRepeatRange($repeatRange);
    }

    public function getRepeatRange()
    {
        $this->__load();
        return parent::getRepeatRange();
    }

    public function setRepetitionNumber($repetitionNumber)
    {
        $this->__load();
        return parent::setRepetitionNumber($repetitionNumber);
    }

    public function getRepetitionNumber()
    {
        $this->__load();
        return parent::getRepetitionNumber();
    }

    public function setAsigned($asigned)
    {
        $this->__load();
        return parent::setAsigned($asigned);
    }

    public function getAsigned()
    {
        $this->__load();
        return parent::getAsigned();
    }

    public function setSequence($sequence)
    {
        $this->__load();
        return parent::setSequence($sequence);
    }

    public function getSequence()
    {
        $this->__load();
        return parent::getSequence();
    }

    public function setStatus($status)
    {
        $this->__load();
        return parent::setStatus($status);
    }

    public function getStatus()
    {
        $this->__load();
        return parent::getStatus();
    }

    public function setInitdate($initdate)
    {
        $this->__load();
        return parent::setInitdate($initdate);
    }

    public function getInitdate()
    {
        $this->__load();
        return parent::getInitdate();
    }

    public function setEnddate($enddate)
    {
        $this->__load();
        return parent::setEnddate($enddate);
    }

    public function getEnddate()
    {
        $this->__load();
        return parent::getEnddate();
    }

    public function setCreated($created)
    {
        $this->__load();
        return parent::setCreated($created);
    }

    public function getCreated()
    {
        $this->__load();
        return parent::getCreated();
    }

    public function setChanged($changed)
    {
        $this->__load();
        return parent::setChanged($changed);
    }

    public function getChanged()
    {
        $this->__load();
        return parent::getChanged();
    }

    public function setCreatedBy($createdBy)
    {
        $this->__load();
        return parent::setCreatedBy($createdBy);
    }

    public function getCreatedBy()
    {
        $this->__load();
        return parent::getCreatedBy();
    }

    public function setModifiedBy($modifiedBy)
    {
        $this->__load();
        return parent::setModifiedBy($modifiedBy);
    }

    public function getModifiedBy()
    {
        $this->__load();
        return parent::getModifiedBy();
    }

    public function setOnePerEvaluator($onePerEvaluator)
    {
        $this->__load();
        return parent::setOnePerEvaluator($onePerEvaluator);
    }

    public function getOnePerEvaluator()
    {
        $this->__load();
        return parent::getOnePerEvaluator();
    }

    public function setNotificationType($notificationType)
    {
        $this->__load();
        return parent::setNotificationType($notificationType);
    }

    public function getNotificationType()
    {
        $this->__load();
        return parent::getNotificationType();
    }

    public function setNotificationTypeId($notificationTypeId)
    {
        $this->__load();
        return parent::setNotificationTypeId($notificationTypeId);
    }

    public function getNotificationTypeId()
    {
        $this->__load();
        return parent::getNotificationTypeId();
    }

    public function setNotificationTypeName($notificationTypeName)
    {
        $this->__load();
        return parent::setNotificationTypeName($notificationTypeName);
    }

    public function getNotificationTypeName()
    {
        $this->__load();
        return parent::getNotificationTypeName();
    }

    public function setNotificationTypeStatus($notificationTypeStatus)
    {
        $this->__load();
        return parent::setNotificationTypeStatus($notificationTypeStatus);
    }

    public function getNotificationTypeStatus()
    {
        $this->__load();
        return parent::getNotificationTypeStatus();
    }

    public function setOwn($own)
    {
        $this->__load();
        return parent::setOwn($own);
    }

    public function getOwn()
    {
        $this->__load();
        return parent::getOwn();
    }

    public function setNotification(\Fishman\NotificationBundle\Entity\Notification $notification = NULL)
    {
        $this->__load();
        return parent::setNotification($notification);
    }

    public function getNotification()
    {
        $this->__load();
        return parent::getNotification();
    }

    public function __toString()
    {
        $this->__load();
        return parent::__toString();
    }

    public function addNotificationexecution(\Fishman\NotificationBundle\Entity\Notificationexecution $notificationexecutions)
    {
        $this->__load();
        return parent::addNotificationexecution($notificationexecutions);
    }

    public function removeNotificationexecution(\Fishman\NotificationBundle\Entity\Notificationexecution $notificationexecutions)
    {
        $this->__load();
        return parent::removeNotificationexecution($notificationexecutions);
    }

    public function getNotificationexecutions()
    {
        $this->__load();
        return parent::getNotificationexecutions();
    }

    public function addNotificationmanualsend(\Fishman\NotificationBundle\Entity\Notificationmanualsend $notificationmanualsends)
    {
        $this->__load();
        return parent::addNotificationmanualsend($notificationmanualsends);
    }

    public function removeNotificationmanualsend(\Fishman\NotificationBundle\Entity\Notificationmanualsend $notificationmanualsends)
    {
        $this->__load();
        return parent::removeNotificationmanualsend($notificationmanualsends);
    }

    public function getNotificationmanualsends()
    {
        $this->__load();
        return parent::getNotificationmanualsends();
    }

    public function daysToNextNotification()
    {
        $this->__load();
        return parent::daysToNextNotification();
    }


    public function __sleep()
    {
        return array('__isInitialized__', 'id', 'head', 'name', 'entity_type', 'entity_id', 'entity_name', 'entity_status', 'notification_type', 'notification_type_id', 'notification_type_name', 'notification_type_status', 'subject', 'message', 'predecessor', 'execution_type', 'selected_trigger', 'since', 'replay', 'repeat_period', 'repeat_range', 'finish', 'repetition_number', 'asigned', 'initdate', 'enddate', 'sequence', 'status', 'created', 'changed', 'created_by', 'modified_by', 'one_per_evaluator', 'own', 'notificationexecutions', 'notificationmanualsends', 'notification');
    }

    public function __clone()
    {
        if (!$this->__isInitialized__ && $this->_entityPersister) {
            $this->__isInitialized__ = true;
            $class = $this->_entityPersister->getClassMetadata();
            $original = $this->_entityPersister->load($this->_identifier);
            if ($original === null) {
                throw new \Doctrine\ORM\EntityNotFoundException();
            }
            foreach ($class->reflFields as $field => $reflProperty) {
                $reflProperty->setValue($this, $reflProperty->getValue($original));
            }
            unset($this->_entityPersister, $this->_identifier);
        }
        
    }
}