<commit_before><?php

namespace Data\DatabaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Data\DatabaseBundle\Entity\Uzytkownik;
use Data\DatabaseBundle\Entity\Wiadomosc;
use Doctrine\Common\Collections\ArrayCollection;
use Data\DatabaseBundle\Entity\Projekt;
use Data\DatabaseBundle\Entity\PlikTask;

/**
 * Task
 *
 * @ORM\Table(name="taski")
 * @ORM\Entity(repositoryClass="Data\DatabaseBundle\Entity\TaskRepository")
 */
class Task {

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="label", type="string", length=255)
     */
    private $label;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime")
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime")
     */
    private $updatedAt;

    /**
     * @var integer
     *
     * @ORM\Column(name="status", type="smallint")
     */
    private $status;

    /**
     * @var integer
     *
     * @ORM\Column(name="priorytet", type="smallint")
     */
    private $priorytet;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="data_zakonczenia", type="datetime", nullable=true)
     */
    private $dataZakonczenia;

    /**
     * @var \DateTime
     * 
     * @ORM\Column(name="termin", type="datetime", nullable=true)
     */
    private $termin;

    /**
     * @var integer
     *
     * @ORM\Column(name="aktualny_uzytkownik", type="integer")
     */
    private $aktualnyUzytkownik;

    /**
     * @var integer
     *
     * @ORM\Column(name="poprzedni_uzytkownik", type="integer", nullable=true)
     */
    private $poprzedniUzytkownik;
    
    /**
     * @var integer
     *
     * @ORM\Column(name="creator", type="integer")
     */
    private $creator;

    /**
     * @var text
     *
     * @ORM\Column(name="opis", type="text")
     */
    private $opis;

    /**
     * @ORM\ManyToMany(targetEntity="Uzytkownik", inversedBy="tasks", cascade={"persist"})
     * @ORM\JoinTable(name="uzytkownicy_taski",
     * joinColumns={@ORM\JoinColumn(name="task_id", referencedColumnName="id")},
     * inverseJoinColumns={@ORM\JoinColumn(name="uzytkownik_id", referencedColumnName="id")}
     * @ORM\JoinColumn(onDelete="CASCADE", onUpdate="CASCADE")
     * )
     */
    private $uzytkownicy;

    /**
     * @ORM\OneToMany(targetEntity="Wiadomosc", mappedBy="task")
     * @ORM\OrderBy({"createdAt" = "DESC"})
     */
    protected $wiadomosci;

    /**
     * @ORM\OneToMany(targetEntity="PlikTask", mappedBy="task")
     */
    protected $plikiTask;
    
    /**
     * @ORM\ManyToOne(targetEntity="Projekt",inversedBy="tasks")
     * @ORM\JoinColumn(referencedColumnName="id")
     */
    protected $projekt;

    CONST STATUS_NOWY = 1;
    CONST STATUS_REALIZOWANY = 2;
    CONST STATUS_ZATRZYMANY = 3;<commit_msg>join table on delete cascade<commit_after><?php

namespace Data\DatabaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Data\DatabaseBundle\Entity\Uzytkownik;
use Data\DatabaseBundle\Entity\Wiadomosc;
use Doctrine\Common\Collections\ArrayCollection;
use Data\DatabaseBundle\Entity\Projekt;
use Data\DatabaseBundle\Entity\PlikTask;

/**
 * Task
 *
 * @ORM\Table(name="taski")
 * @ORM\Entity(repositoryClass="Data\DatabaseBundle\Entity\TaskRepository")
 */
class Task {

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="label", type="string", length=255)
     */
    private $label;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime")
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime")
     */
    private $updatedAt;

    /**
     * @var integer
     *
     * @ORM\Column(name="status", type="smallint")
     */
    private $status;

    /**
     * @var integer
     *
     * @ORM\Column(name="priorytet", type="smallint")
     */
    private $priorytet;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="data_zakonczenia", type="datetime", nullable=true)
     */
    private $dataZakonczenia;

    /**
     * @var \DateTime
     * 
     * @ORM\Column(name="termin", type="datetime", nullable=true)
     */
    private $termin;

    /**
     * @var integer
     *
     * @ORM\Column(name="aktualny_uzytkownik", type="integer")
     */
    private $aktualnyUzytkownik;

    /**
     * @var integer
     *
     * @ORM\Column(name="poprzedni_uzytkownik", type="integer", nullable=true)
     */
    private $poprzedniUzytkownik;
    
    /**
     * @var integer
     *
     * @ORM\Column(name="creator", type="integer")
     */
    private $creator;

    /**
     * @var text
     *
     * @ORM\Column(name="opis", type="text")
     */
    private $opis;

    /**
     * @ORM\ManyToMany(targetEntity="Uzytkownik", inversedBy="tasks", cascade={"persist"})
     * @ORM\JoinTable(name="uzytkownicy_taski",
     * joinColumns={@ORM\JoinColumn(name="task_id", referencedColumnName="id", onDelete="CASCADE")},
     * inverseJoinColumns={@ORM\JoinColumn(name="uzytkownik_id", referencedColumnName="id")}
     * )
     */
    private $uzytkownicy;

    /**
     * @ORM\OneToMany(targetEntity="Wiadomosc", mappedBy="task")
     * @ORM\OrderBy({"createdAt" = "DESC"})
     */
    protected $wiadomosci;

    /**
     * @ORM\OneToMany(targetEntity="PlikTask", mappedBy="task")
     */
    protected $plikiTask;
    
    /**
     * @ORM\ManyToOne(targetEntity="Projekt",inversedBy="tasks")
     * @ORM\JoinColumn(referencedColumnName="id")
     */
    protected $projekt;

    CONST STATUS_NOWY = 1;
    CONST STATUS_REALIZOWANY = 2;
    CONST STATUS_ZATRZYMANY = 3;
{'fraction_non_alphanumeric': 0.16890982503364738, 'fraction_numerical': 0.002018842530282638, 'mean_word_length': 2.667489204194941, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3855766', 'n_tokens_mistral': 2130, 'n_tokens_neox': 2069, 'n_words': 272}