SuperdeskWebPublisher/SWPBridgeBundle

View on GitHub
Resources/config/doctrine-orm/Item.orm.yml

Summary

Maintainability
Test Coverage
SWP\Component\Bridge\Model\Item:
    type: mappedSuperclass
    table: swp_item
    repositoryClass: SWP\Bundle\BridgeBundle\Doctrine\ORM\ItemRepository
    id:
        id:
            type: integer
            id: true
            generator:
                strategy: AUTO
    fields:
        name:
            type: string
            nullable: true
        headline:
            type: text
        slugline:
            type: string
            nullable: true
        guid:
            type: string
            length: 400
        evolvedFrom:
            type: string
            nullable: true
        byline:
            type: string
            nullable: true
        language:
            type: string
        description:
            type: text
            nullable: true
        subjects:
            type: array
        services:
            type: array
            nullable: true
        genre:
            type: array
            nullable: true
        keywords:
            type: array
        places:
            type: array
        type:
            type: string
        located:
            type: string
            nullable: true
        source:
            type: string
            nullable: true
        pubStatus:
            type: string
        urgency:
            type: integer
        priority:
            type: integer
        version:
            type: integer
        body:
            type: text
            nullable: true
        bodyText:
            type: text
            nullable: true
        usageTerms:
            type: string
            nullable: true
        copyrightNotice:
            type: string
            nullable: true
        copyrightHolder:
            type: string
            nullable: true
        extra:
            type: array
            nullable: true
        position:
            type: integer
            nullable: true
        firstPublishedAt:
            type: datetime
            nullable: true
        profile:
            type: string
            nullable: true
        createdAt:
            type: datetime
            gedmo:
                timestampable:
                    on: create
        updatedAt:
            type: datetime
            nullable: true
            gedmo:
                timestampable:
                    on: update
    manyToOne:
        package:
            targetEntity: SWP\Component\Bridge\Model\PackageInterface
            inversedBy: items
            joinColumn:
                onDelete: CASCADE
        group:
            targetEntity: SWP\Component\Bridge\Model\GroupInterface
            inversedBy: items
            joinColumn:
                onDelete: CASCADE
    oneToMany:
        renditions:
            targetEntity: SWP\Component\Bridge\Model\RenditionInterface
            cascade: ["all"]
            mappedBy: item