<commit_before><?php

namespace FB\groupeBundle\Entity;

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

/**
 * Post
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Post
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="string", length=50)
     * @ORM\Id
     * 
     */
    private $id;

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

    /**
     * @var string
     *
     * @ORM\Column(name="message", type="text", nullable = true)
     */
    private $message;

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

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

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

    /**
     * @var string
     *
     * @ORM\Column(name="nom", type="text", nullable = true)
     */
    private $nom;

    /**
     * @var string
     *
     * @ORM\Column(name="description", type="text", nullable = true)
     */
    private $description;

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

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

    /**
     * @var integer
     *
     * @ORM\Column(name="nbrComment", type="integer", nullable = true)
     */
    private $nbrComment;
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
    /**
     * 
     * @ORM\ManyToOne(targetEntity="Utilisateur", inversedBy="posts")
     * @ORM\JoinColumn(name="id_publicateur", referencedColumnName="id") 
     */
    private $publicateur;

    /**
     * 
     * @ORM\ManyToOne(targetEntity="Groupe", inversedBy="posts")
     * @ORM\JoinColumn(name="id_groupe", referencedColumnName="id") 
     */
    private $groupe;
    
    /**
    * @ORM\ManyToMany(targetEntity="Utilisateur", cascade={"persist", "remove"})
    * @ORM\JoinTable(name="Jaimes",joinColumns={@ORM\JoinColumn(name="id_post",referencedColumnName="id")},
    * inverseJoinColumns={@ORM\JoinColumn(name="id_aimant",referencedColumnName="id")}
    * )
    */
    private $jaimes;
    
    /**
     * @ORM\OneToMany(targetEntity="Commentaire", mappedBy="post", cascade={"persist", "remove"} )
     **/
    private $commentaires;
    /**
     * Set id
     *
     * @param string $id<commit_msg>Revision de l'entité post<commit_after><?php

namespace FB\groupeBundle\Entity;

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

/**
 * Post
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Post
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="string", length=50)
     * @ORM\Id
     * 
     */
    private $id;

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

    /**
     * @var string
     *
     * @ORM\Column(name="message", type="text", nullable = true)
     */
    private $message;

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

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

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

    /**
     * @var string
     *
     * @ORM\Column(name="nom", type="text", nullable = true)
     */
    private $nom;

    /**
     * @var string
     *
     * @ORM\Column(name="description", type="text", nullable = true)
     */
    private $description;

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

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

    /**
     * @var integer
     *
     * @ORM\Column(name="nbrComment", type="integer", nullable = true)
     */
    private $nbrComment;
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
    /**
     * 
     * @ORM\ManyToOne(targetEntity="Utilisateur", inversedBy="posts")
     * @ORM\JoinColumn(name="id_publicateur", referencedColumnName="id") 
     */
    private $publicateur;

    /**
     * 
     * @ORM\ManyToOne(targetEntity="Groupe", inversedBy="posts")
     * @ORM\JoinColumn(name="id_groupe", referencedColumnName="id") 
     */
    private $groupe;
    
    /**
    * @ORM\ManyToMany(targetEntity="Utilisateur", cascade={"persist", "remove"})
    * @ORM\JoinTable(name="Jaimes",joinColumns={@ORM\JoinColumn(name="id_post",referencedColumnName="id")},
    * inverseJoinColumns={@ORM\JoinColumn(name="id_utilisateur",referencedColumnName="id")}
    * )
    */
    private $jaimes;
    
    /**
     * @ORM\OneToMany(targetEntity="Commentaire", mappedBy="post", cascade={"persist", "remove"} )
     **/
    private $commentaires;
    /**
     * Set id
     *
     * @param string $id
{'fraction_non_alphanumeric': 0.1769404410487932, 'fraction_numerical': 0.004514672686230248, 'mean_word_length': 2.261608154020385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4608105', 'n_tokens_mistral': 2001, 'n_tokens_neox': 1927, 'n_words': 292}