SuperdeskWebPublisher/SWPBridgeBundle

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

Summary

Maintainability
Test Coverage
SWP\Component\Bridge\Model\Group:
    type: mappedSuperclass
    table: swp_item_groups
    repositoryClass: SWP\Bundle\StorageBundle\Doctrine\ORM\EntityRepository
    gedmo:
        soft_deleteable:
            field_name: deletedAt
            time_aware: false
    id:
        id:
            type: integer
            id: true
            generator:
                strategy: AUTO
    fields:
        code:
            type: string
        type:
            type: string
            nullable: true
        deletedAt:
            type: datetime
            nullable: true
    oneToMany:
        items:
            targetEntity: SWP\Component\Bridge\Model\ItemInterface
            cascade: ["all"]
            orphanRemoval: true
            mappedBy: group
    manyToOne:
        package:
            targetEntity: SWP\Component\Bridge\Model\PackageInterface
            inversedBy: groups
            joinColumn:
                onDelete: CASCADE