src/Entity/Participation.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\SocietesRepository;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SocietesRepository::class)
  7.  * @ORM\Table(name="fusacq_dbo.societes")
  8.  */
  9. class Participation{
  10.     public function __construct() {
  11.         $this->fonds = new \Doctrine\Common\Collections\ArrayCollection ();
  12.     }
  13.     /**
  14.      *
  15.      * @var int @ORM\Id
  16.      *      @ORM\Column(type="integer",name="id_societe",nullable=false)
  17.      *      @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     protected $id_societe;
  20.     /**
  21.      * @ORM\ManyToMany(targetEntity="FondsInvestissement")
  22.      * @ORM\JoinTable(name="lien_participations_fonds",
  23.      *      joinColumns={@ORM\JoinColumn(name="id_participation", referencedColumnName="id_societe")},
  24.      *      inverseJoinColumns={@ORM\JoinColumn(name="id_gestionnaire_fonds", referencedColumnName="id_gestionnaire_fonds")}
  25.      *      )
  26.      */
  27.     private $fonds;
  28.     /**
  29.      *
  30.      * @var string @ORM\Column(type="integer", nullable=true, name="id_societe_news", options={"default"= 0})
  31.      */
  32.     protected $id_societe_news;
  33.     /**
  34.      *
  35.      * @var string @ORM\Column(type="integer", nullable=true, name="id_participation", options={"default"= 0})
  36.      */
  37.     protected $id_participation;
  38.     /**
  39.      *
  40.      * @var string @ORM\Column(type="string", nullable=true, name="mode_participation", options={"default"= null})
  41.      */
  42.     protected $mode_participation;
  43.     /**
  44.      *
  45.      * @var string @ORM\Column(type="string", nullable=true, name="deja_publique", options={"default"= null})
  46.      */
  47.     protected $deja_publique;
  48.     /**
  49.      *
  50.      * @var string @ORM\Column(type="string", nullable=true, name="raison_sociale", options={"default"= null})
  51.      */
  52.     protected $raison_sociale;
  53.     /**
  54.      *
  55.      * @var string @ORM\Column(type="string", nullable=true, name="raison_sociale_formatee", options={"default"= null})
  56.      */
  57.     protected $raison_sociale_formatee;
  58.     /**
  59.      *
  60.      * @var string @ORM\Column(type="string", nullable=true, name="nom_president", options={"default"= null})
  61.      */
  62.     protected $nom_president;
  63.     /**
  64.      *
  65.      * @var string @ORM\Column(type="string", nullable=true, name="nom_directeur_general", options={"default"= null})
  66.      */
  67.     protected $nom_directeur_general;
  68.     /**
  69.      *
  70.      * @var string @ORM\Column(type="text", nullable=true, name="adresse", options={"default"= null})
  71.      */
  72.     protected $adresse;
  73.     /**
  74.      *
  75.      * @var string @ORM\Column(type="string", nullable=true, name="ville", options={"default"= null})
  76.      */
  77.     protected $ville;
  78.     /**
  79.      *
  80.      * @var string @ORM\Column(type="string", nullable=true, name="code_postal", options={"default"= null})
  81.      */
  82.     protected $code_postal;
  83.     /**
  84.      *
  85.      * @var string @ORM\Column(type="string", nullable=true, name="telephone", options={"default"= null})
  86.      */
  87.     protected $telephone;
  88.     /**
  89.      *
  90.      * @var string @ORM\Column(type="string", nullable=true, name="fax", options={"default"= null})
  91.      */
  92.     protected $fax;
  93.     /**
  94.      *
  95.      * @var string @ORM\Column(type="string", nullable=true, name="id_pays", options={"default"= null})
  96.      */
  97.     protected $id_pays;
  98.     /**
  99.      *
  100.      * @var string @ORM\Column(type="string", nullable=true, name="id_region", options={"default"= null})
  101.      */
  102.     protected $id_region;
  103.     /**
  104.      *
  105.      * @var string @ORM\Column(type="string", nullable=true, name="filiales_bureaux", options={"default"= null})
  106.      */
  107.     protected $filiales_bureaux;
  108.     /**
  109.      *
  110.      * @var string @ORM\Column(type="integer", nullable=true, name="id_secteur_activite", options={"default"= null})
  111.      */
  112.     protected $id_secteur_activite;
  113.     /**
  114.      *
  115.      * @var string @ORM\Column(type="integer", nullable=true, name="id_secteur_activite_fonds", options={"default"= null})
  116.      */
  117.     protected $id_secteur_activite_fonds;
  118.     /**
  119.      *
  120.      * @var string @ORM\Column(type="string", nullable=true, name="site_internet", options={"default"= null})
  121.      */
  122.     protected $site_internet;
  123.     /**
  124.      *
  125.      * @var string @ORM\Column(type="string", nullable=true, name="src_image_si_artviper_desactive", options={"default"= "http://www.fusacq.com/fr/css/images/spacer.gif"})
  126.      */
  127.     protected $src_image_si_artviper_desactive;
  128.     /**
  129.      *
  130.      * @var string @ORM\Column(type="string", nullable=true, name="mail_contact", options={"default"= null})
  131.      */
  132.     protected $mail_contact;
  133.     /**
  134.      *
  135.      * @var string @ORM\Column(type="string", nullable=true, name="resume_activite", options={"default"= null})
  136.      */
  137.     protected $resume_activite;
  138.     /**
  139.      *
  140.      * @var string @ORM\Column(type="text", nullable=true, name="description_activite", options={"default"= null})
  141.      */
  142.     protected $description_activite;
  143.     /**
  144.      *
  145.      * @var string @ORM\Column(type="text", nullable=true, name="mots_cles", options={"default"= null})
  146.      */
  147.     protected $mots_cles;
  148.     /**
  149.      *
  150.      * @var string @ORM\Column(type="text", nullable=true, name="strategie_developpement", options={"default"= null})
  151.      */
  152.     protected $strategie_developpement;
  153.     /**
  154.      *
  155.      * @var string @ORM\Column(type="decimal", nullable=true, name="marge_brute_n", options={"default"= null})
  156.      */
  157.     protected $marge_brute_n;
  158.     /**
  159.      *
  160.      * @var string @ORM\Column(type="decimal", nullable=true, name="resultat_exploitation_n", options={"default"= null})
  161.      */
  162.     protected $resultat_exploitation_n;
  163.     /**
  164.      *
  165.      * @var string @ORM\Column(type="decimal", nullable=true, name="resultat_net_n", options={"default"= null})
  166.      */
  167.     protected $resultat_net_n;
  168.     /**
  169.      *
  170.      * @var string @ORM\Column(type="decimal", nullable=true, name="ca_n", options={"default"= null})
  171.      */
  172.     protected $ca_n;
  173.     /**
  174.      *
  175.      * @var string @ORM\Column(type="integer", nullable=true, name="nb_personnes_n", options={"default"= null})
  176.      */
  177.     protected $nb_personnes_n;
  178.     /**
  179.      *
  180.      * @var string @ORM\Column(type="string", nullable=true, name="annee_n", options={"default"= null})
  181.      */
  182.     protected $annee_n;
  183.     /**
  184.      *
  185.      * @var string @ORM\Column(type="string", nullable=true, name="date_mise_a_jour", options={"default"= null})
  186.      */
  187.     protected $date_mise_a_jour;
  188.     /**
  189.      *
  190.      * @var string @ORM\Column(type="string", nullable=true, name="fichier_joint", options={"default"= null})
  191.      */
  192.     protected $fichier_joint;
  193.     /**
  194.      *
  195.      * @var string @ORM\Column(type="text", nullable=true, name="commentaire_interne", options={"default"= null})
  196.      */
  197.     protected $commentaire_interne;
  198.     /**
  199.      *
  200.      * @var string @ORM\Column(type="string", nullable=true, name="societe_cotee", options={"default"= null})
  201.      */
  202.     protected $societe_cotee;
  203.     /**
  204.      *
  205.      * @var string @ORM\Column(type="string", nullable=true, name="login_demande_publication", options={"default"= null})
  206.      */
  207.     protected $login_demande_publication;
  208.     /**
  209.      *
  210.      * @var string @ORM\Column(type="string", nullable=true, name="date_relance", options={"default"= null})
  211.      */
  212.     protected $date_relance;
  213.     /**
  214.      *
  215.      * @var string @ORM\Column(type="string", nullable=true, name="relance_mise_a_jour", options={"default"= null})
  216.      */
  217.     protected $relance_mise_a_jour;
  218.     /**
  219.      *
  220.      * @var string @ORM\Column(type="string", nullable=true, name="numero_siren", options={"default"= null})
  221.      */
  222.     protected $numero_siren;
  223.     /**
  224.      *
  225.      * @var string @ORM\Column(type="decimal", nullable=true, name="montant_total_investi", options={"default"= null})
  226.      */
  227.     protected $montant_total_investi;
  228.     /**
  229.      *
  230.      * @var string @ORM\Column(type="integer", nullable=true, name="capital_total_investisseur", options={"default"= null})
  231.      */
  232.     protected $capital_total_investisseur;
  233.     /**
  234.      *
  235.      * @var string @ORM\Column(type="string", nullable=true, name="titre_newsletter", options={"default"= null})
  236.      */
  237.     protected $titre_newsletter;
  238.     /**
  239.      *
  240.      * @var string @ORM\Column(type="text", nullable=true, name="resume_newsletter", options={"default"= null})
  241.      */
  242.     protected $resume_newsletter;
  243.     /**
  244.      *
  245.      * @var string @ORM\Column(type="string", nullable=true, name="date_dernier_investissement", options={"default"= null})
  246.      */
  247.     protected $date_dernier_investissement;
  248.     /**
  249.      *
  250.      * @var string @ORM\Column(type="integer", nullable=true, name="type_profil_participation", options={"default"= null})
  251.      */
  252.     protected $type_profil_participation;
  253.     /**
  254.      *
  255.      * @var string @ORM\Column(type="string", nullable=true, name="mode_societe", options={"default"= "publique"})
  256.      */
  257.     protected $mode_societe;
  258.     /**
  259.      *
  260.      * @var string @ORM\Column(type="string", nullable=true, name="utiliser_artviper", options={"default"= "oui"})
  261.      */
  262.     protected $utiliser_artviper;
  263.     /**
  264.      *
  265.      * @var string @ORM\Column(type="string", nullable=true, name="numero_siret", options={"default"= null})
  266.      */
  267.     protected $numero_siret;
  268.     /**
  269.      *
  270.      * @var string @ORM\Column(type="string", nullable=true, name="code_naf", options={"default"= null})
  271.      */
  272.     protected $code_naf;
  273.     /**
  274.      *
  275.      * @var string @ORM\Column(type="string", nullable=true, name="vignette", options={"default"= null})
  276.      */
  277.     protected $vignette;
  278.     /**
  279.      *
  280.      * @var string @ORM\Column(type="string", nullable=true, name="vignette_small", options={"default"= null})
  281.      */
  282.     protected $vignette_small;
  283.     /**
  284.      *
  285.      * @var string @ORM\Column(type="integer", nullable=true, name="ca_n_inf", options={"default"= null})
  286.      */
  287.     protected $ca_n_inf;
  288.     /**
  289.      *
  290.      * @var string @ORM\Column(type="integer", nullable=true, name="ca_n_sup", options={"default"= null})
  291.      */
  292.     protected $ca_n_sup;
  293.     /**
  294.      *
  295.      * @var string @ORM\Column(type="integer", nullable=true, name="id_societe_mere", options={"default"= null})
  296.      */
  297.     protected $id_societe_mere;
  298.     protected $url;
  299.     /**
  300.      * Magic getter to expose protected properties.
  301.      *
  302.      * @param string $property
  303.      * @return mixed
  304.      */
  305.     public function _get($property)
  306.     {
  307.         return $this->$property;
  308.     }
  309.     
  310.     /**
  311.      * Magic setter to save protected properties.
  312.      *
  313.      * @param string $property
  314.      * @param mixed $value
  315.      */
  316.     public function _set($property$value)
  317.     {
  318.         $this->$property $value;
  319.     }
  320.     
  321.     public function addFonds($fonds) {
  322.         $this->fonds [] = $fonds;
  323.     }
  324.     public function getFondsCollection() {
  325.         return $this->fonds;
  326.     }
  327.     public function getFonds() {
  328.         return $this->fonds->getValues ();
  329.     }
  330.     public function setUrl($seoUrlFilter) {
  331.         $this->url $seoUrlFilter->filter $this->_get("raison_sociale") );
  332.     }
  333.     
  334.     
  335. }