<?php

namespace Dorcas\TabithaBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="listelement")
 */

class ListElement
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $listitem_id;
    
    /**
     * @ORM\Column(type="integer")
     */
    protected $group_id;
    
    /**
     * @ORM\Column(type="string")
     */
    protected $name;
    
    /**
     * @ORM\Column(type="integer")
     */
    protected $sort_order;
    
     /**
     * @ORM\Column(type="boolean")
     */
    protected $active_flag;
    
    /**
     * @ORM\ManyToOne(targetEntity="ListElementGroup", inversedBy="listelements")
     * @ORM\JoinColumn(name="group_id", referencedColumnName="group_id")
     */
    protected $listelementgroup;
    
    /**
     * @ORM\Column(type="datetime")
     */
    protected $created_dt;
    
    /**
     * @ORM\Column(type="datetime")
     */
    protected $modified_dt;
    

    
    public function __toString()
{
    return $this->getName();
}


    /**
     * Get listitem_id
     *
     * @return integer 
     */
    public function getListitemId()
    {
        return $this->listitem_id;
    }

    /**
     * Set group_id
     *
     * @param integer $groupId
     */
    public function setGroupId($groupId)
    {
        $this->group_id = $groupId;
    }

    /**
     * Get group_id
     *
     * @return integer 
     */
    public function getGroupId()
    {
        return $this->group_id;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set sort_order
     *
     * @param integer $sortOrder
     */
    public function setSortOrder($sortOrder)
    {
        $this->sort_order = $sortOrder;
    }

    /**
     * Get sort_order
     *
     * @return integer 
     */
    public function getSortOrder()
    {
        return $this->sort_order;
    }

    /**
     * Set active_flag
     *
     * @param boolean $activeFlag
     */
    public function setActiveFlag($activeFlag)
    {
        $this->active_flag = $activeFlag;
    }

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

    /**
     * Set created_dt
     *
     * @param datetime $createdDt
     */
    public function setCreatedDt($createdDt)
    {
        $this->created_dt = $createdDt;
    }

    /**
     * Get created_dt
     *
     * @return datetime 
     */
    public function getCreatedDt()
    {
        return $this->created_dt;
    }

    /**
     * Set modified_dt
     *
     * @param datetime $modifiedDt
     */
    public function setModifiedDt($modifiedDt)
    {
        $this->modified_dt = $modifiedDt;
    }

    /**
     * Get modified_dt
     *
     * @return datetime 
     */
    public function getModifiedDt()
    {
        return $this->modified_dt;
    }

    /**
     * Set listelementgroup
     *
     * @param Dorcas\TabithaBundle\Entity\ListElementGroup $listelementgroup
     */
    public function setListelementgroup(\Dorcas\TabithaBundle\Entity\ListElementGroup $listelementgroup)
    {
        $this->listelementgroup = $listelementgroup;
    }

    /**
     * Get listelementgroup
     *
     * @return Dorcas\TabithaBundle\Entity\ListElementGroup 
     */
    public function getListelementgroup()
    {
        return $this->listelementgroup;
    }
}