<?php

namespace RxConnexionBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use RxConnexionBundle\Entity\Base\BaseEntity;
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToStringTransformer;
use JMS\Serializer\Annotation\Groups;
use JMS\Serializer\Annotation\MaxDepth;


/**
 * @ORM\Entity(repositoryClass="RxConnexionBundle\Repository\AccountUserReminderRefPatientRepository")
 * @ORM\Table(name="account_user_reminder_ref_patient")
 */

class AccountUserReminderRefPatientEntity extends BaseEntity
{

    /**
     * @ORM\Column(name="is_deleted", type="boolean")
     */
    protected $isDeleted;

    /**
     * @ORM\ManyToOne(targetEntity="AccountUserReminderEntity", inversedBy="accountUserReminderRefPatients")
     * @ORM\JoinColumn(name="account_user_reminder_id", referencedColumnName="id")
     */
    protected $accountUserReminder;

    /**
     * @ORM\ManyToOne(targetEntity="PatientEntity", inversedBy="accountUserReminderRefPatients")
     * @ORM\JoinColumn(name="patient_id", referencedColumnName="id")
     */
    protected $patient;


    /*--------------------------------------------------------------------------------------------------------*/
    /*					Use Defined Setters and Getters														  */
    /*--------------------------------------------------------------------------------------------------------*/

    /**
     * Set createdAt
     *
     * @ORM\PrePersist
     */
    public function setCreatedAtValue()
    {
        parent::setCreatedAtValue();
        $this->isDeleted = 0;
    }

    /*--------------------------------------------------------------------------------------------------------*/
    /*					Setters and Getters																	  */
    /*--------------------------------------------------------------------------------------------------------*/


    /**
     * Constructor
     */
    public function __construct()
    {
//        $this->chatMessages = new \Doctrine\Common\Collections\ArrayCollection();
//        $this->chatParticipants = new \Doctrine\Common\Collections\ArrayCollection();
    }


    /**
     * Set isDeleted
     *
     * @param boolean $isDeleted
     *
     * @return AccountUserReminderRefPatientEntity
     */
    public function setIsDeleted($isDeleted)
    {
        $this->isDeleted = $isDeleted;

        return $this;
    }

    /**
     * Get isDeleted
     *
     * @return boolean
     */
    public function getIsDeleted()
    {
        return $this->isDeleted;
    }

    /**
     * Set accountUserReminder
     *
     * @param \RxConnexionBundle\Entity\AccountUserReminderEntity $accountUserReminder
     *
     * @return AccountUserReminderRefPatientEntity
     */
    public function setAccountUserReminder(\RxConnexionBundle\Entity\AccountUserReminderEntity $accountUserReminder = null)
    {
        $this->accountUserReminder = $accountUserReminder;

        return $this;
    }

    /**
     * Get accountUserReminder
     *
     * @return \RxConnexionBundle\Entity\AccountUserReminderEntity
     */
    public function getAccountUserReminder()
    {
        return $this->accountUserReminder;
    }

    /**
     * Set patient
     *
     * @param \RxConnexionBundle\Entity\PatientEntity $patient
     *
     * @return AccountUserReminderRefPatientEntity
     */
    public function setPatient(\RxConnexionBundle\Entity\PatientEntity $patient = null)
    {
        $this->patient = $patient;

        return $this;
    }

    /**
     * Get patient
     *
     * @return \RxConnexionBundle\Entity\PatientEntity
     */
    public function getPatient()
    {
        return $this->patient;
    }
}
