Resources/config/doctrine/Tag.orm.yml
author cavaliet
Wed, 16 May 2012 18:17:19 +0200
changeset 96 be6e1ae3965c
parent 74 901463f9b11c
permissions -rwxr-xr-x
update readme
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
74
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     1
##
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     2
# This file is part of the WikiTagBundle package.
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     3
#
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     4
# (c) IRI <http://www.iri.centrepompidou.fr/>
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     5
#
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     6
# For the full copyright and license information, please view the LICENSE
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     7
# file that was distributed with this source code.
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     8
##
901463f9b11c add headers for public repository release
ymh <ymh.work@gmail.com>
parents: 62
diff changeset
     9
2
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
IRI\Bundle\WikiTagBundle\Entity\Tag:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
  type: entity
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
  repositoryClass: IRI\Bundle\WikiTagBundle\Entity\TagRepository
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
  table: wikitag_tag
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
  fields:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    id:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
      type: integer
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
      id: true
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
      generator:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
        strategy: AUTO
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    label:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
      type: string
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
      length: '1024'
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
    normalizedLabel:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
      type: string
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
      length: '1024'
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
      column: normalized_label
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
    originalLabel:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
      type: string
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
      length: '1024'
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
      column: original_label
42
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    31
    alternativeLabel:
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    32
      type: string
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    33
      length: '1024'
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    34
      column: alternative_label
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    35
      nullable: true
2
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
    alias:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
      type: string
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
      length: '1024'
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
      nullable: true
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
    wikipediaUrl:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
      type: string
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
      length: '2048'
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
      column: wikipedia_url
8
7d2fb5d7c9ff debug addtag for document
cavaliet
parents: 2
diff changeset
    44
      nullable: true
42
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    45
    alternativeWikipediaUrl:
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    46
      type: string
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    47
      length: '2048'
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    48
      column: wikipedia_alternative_url
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    49
      nullable: true
2
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
    wikipediaPageId:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
      type: bigint
42
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    52
      column: wikipedia_pageid
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    53
      nullable: true
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    54
    alternativeWikipediaPageId:
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    55
      type: bigint
0e57c730bb18 Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents: 14
diff changeset
    56
      column: alternative_wikipedia_pageid
8
7d2fb5d7c9ff debug addtag for document
cavaliet
parents: 2
diff changeset
    57
      nullable: true
2
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
    urlStatus:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
      type: smallint
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
      column: url_status
8
7d2fb5d7c9ff debug addtag for document
cavaliet
parents: 2
diff changeset
    61
      nullable: true
2
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
    dbpediaUri:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
      type: string
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
      length: '2048'
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
      column: dbpedia_uri
8
7d2fb5d7c9ff debug addtag for document
cavaliet
parents: 2
diff changeset
    66
      nullable: true
2
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
    popularity:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
      type: integer
62
10be6b9e55e7 add creation timestamp on document tag and document tag
ymh <ymh.work@gmail.com>
parents: 42
diff changeset
    69
    createdAt:
10be6b9e55e7 add creation timestamp on document tag and document tag
ymh <ymh.work@gmail.com>
parents: 42
diff changeset
    70
      type: datetime
10be6b9e55e7 add creation timestamp on document tag and document tag
ymh <ymh.work@gmail.com>
parents: 42
diff changeset
    71
      column: created_at
10be6b9e55e7 add creation timestamp on document tag and document tag
ymh <ymh.work@gmail.com>
parents: 42
diff changeset
    72
      nullable: false
10be6b9e55e7 add creation timestamp on document tag and document tag
ymh <ymh.work@gmail.com>
parents: 42
diff changeset
    73
      
2
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
  manyToOne:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
    category:
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
      targetEntity: Category
14
673b2766024e Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents: 8
diff changeset
    77
  oneToMany:
673b2766024e Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents: 8
diff changeset
    78
    documents:
673b2766024e Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents: 8
diff changeset
    79
      targetEntity: DocumentTag
673b2766024e Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents: 8
diff changeset
    80
      mappedBy: tag
2
13f43f53d0ba first implementation
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
  lifecycleCallbacks: {  }