Commit cfdd6213 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Init notes par intervenant

parent d2db0a73
Loading
Loading
Loading
Loading
+1
Changes for data/ddl/sequence.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ return [
    'MOTIF_MODIFICATION_SERV_ID_SEQ',
    'MOTIF_NON_PAIEMENT_ID_SEQ',
    'NOEUD_ID_SEQ',
    'NOTE_ID_SEQ',
    'NOTIFICATION_INDICATEUR_ID_SEQ',
    'PARAMETRE_ID_SEQ',
    'PAYS_ID_SEQ',
+148
Changes for data/ddl/table/NOTE.php: 148 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

//@formatter:off

return [
    'name'        => 'NOTE',
    'temporary'   => FALSE,
    'logging'     => TRUE,
    'commentaire' => NULL,
    'sequence'    => 'NOTE_ID_SEQ',
    'columns'     => [
        'ID'                     => [
            'name'        => 'ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 1,
            'commentaire' => NULL,
        ],
        'LIBELLE'     => [
            'name'        => 'LIBELLE',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 200,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 2,
            'commentaire' => NULL,
        ],
        'CONTENU' => [
            'name'        => 'CONTENU',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 4000,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 3,
            'commentaire' => NULL,
        ],
        'TYPE_NOTE_ID'    => [
            'name'        => 'TYPE_NOTE_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 4,
            'commentaire' => NULL,
        ],
        'INTERVENANT_ID'    => [
            'name'        => 'INTERVENANT_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 5,
            'commentaire' => NULL,
        ],
        'HISTO_CREATEUR_ID'        => [
            'name'        => 'HISTO_CREATEUR_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 54,
            'commentaire' => NULL,
        ],
        'HISTO_CREATION'           => [
            'name'        => 'HISTO_CREATION',
            'type'        => 'date',
            'bdd-type'    => 'DATE',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => 'SYSDATE',
            'position'    => 53,
            'commentaire' => NULL,
        ],
        'HISTO_DESTRUCTEUR_ID'     => [
            'name'        => 'HISTO_DESTRUCTEUR_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 58,
            'commentaire' => NULL,
        ],
        'HISTO_DESTRUCTION'        => [
            'name'        => 'HISTO_DESTRUCTION',
            'type'        => 'date',
            'bdd-type'    => 'DATE',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 57,
            'commentaire' => NULL,
        ],
        'HISTO_MODIFICATEUR_ID'    => [
            'name'        => 'HISTO_MODIFICATEUR_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 56,
            'commentaire' => NULL,
        ],
        'HISTO_MODIFICATION'       => [
            'name'        => 'HISTO_MODIFICATION',
            'type'        => 'date',
            'bdd-type'    => 'DATE',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => 'SYSDATE',
            'position'    => 55,
            'commentaire' => NULL,
        ],

    ],
];

//@formatter:on
+x+32
Changes for module/Intervenant/src/Entity/Db/Mapping/Intervenant.Entity.Db.Note.dcm.xml: 32 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity name="Intervenant\Entity\Db\Note" table="NOTE">
        <id name="id" type="integer" column="ID">
            <generator strategy="SEQUENCE"/>
        </id>
        <field name="libelle" type="string" column="LIBELLE" length="500" nullable="false"/>
        <field name="contenu" type="blob" column="CONTENU" nullable="false"/>
        <many-to-one field="type" target-entity="Application\Entity\Db\TypeNote">
            <join-column name="type_note_id" referenced-column-name="ID"/>
        </many-to-one>
        <many-to-one field="intervenant" target-entity="Application\Entity\Db\Intervenant">
            <join-column name="INTERVENANT_ID" referenced-column-name="ID"/>
        </many-to-one>
        <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
        <many-to-one field="histoCreateur" target-entity="Application\Entity\Db\Utilisateur">
            <join-column name="HISTO_CREATEUR_ID" referenced-column-name="ID"/>
        </many-to-one>
        <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
        <many-to-one field="histoModificateur" target-entity="Application\Entity\Db\Utilisateur">
            <join-column name="HISTO_MODIFICATEUR_ID" referenced-column-name="ID"/>
        </many-to-one>
        <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
        <many-to-one field="histoDestructeur" target-entity="Application\Entity\Db\Utilisateur">
            <join-columns>
                <join-column name="HISTO_DESTRUCTEUR_ID" referenced-column-name="ID"/>
            </join-columns>
        </many-to-one>
    </entity>
</doctrine-mapping>
+x+52
Changes for module/Intervenant/src/Entity/Db/Note.php: 52 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace Intervenant\Entity\Db;


use Application\Entity\Db\Intervenant;
use UnicaenApp\Entity\HistoriqueAwareInterface;
use UnicaenApp\Entity\HistoriqueAwareTrait;

/**
 * Description of Statut
 *
 * @author Antony Le Courtes <antony.lecourtes at unicaen.fr>
 */
class Note implements HistoriqueAwareInterface
{
    use HistoriqueAwareTrait;

    /**
     * @var integer
     */
    private $id;

    /**
     * @var string
     */
    private $libelle;

    /**
     * @var string
     */
    private $contenu;

    /**
     * @var Intervenant
     */

    private $intervenant;

    /**
     * @var Type
     */
    private $type;



    public function __construct()
    {

    }

}