Žiadny popis

Guillermo Espinoza d36b92b85d Se agrego nullable en campo extraData 8 rokov pred
Entity d36b92b85d Se agrego nullable en campo extraData 8 rokov pred
Resources b45963df9a Commit inicial 8 rokov pred
ExtraDataBundle.php b45963df9a Commit inicial 8 rokov pred
README.md b45963df9a Commit inicial 8 rokov pred
composer.json b45963df9a Commit inicial 8 rokov pred

README.md

ExtraDataBundle

Installation

composer.json:

"repositories": [
    {
        "type": "vcs",
        "url":  "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/ExtraDataBundle.git"
    }
],
"require": {
    "ik/extra-data-bundle": "dev-master"
},

app/AppKernel.php:

public function registerBundles()
{
    $bundles = [
        new ExtraBundle\ExtraBundle(),
    ];
    .
    .
}

app/config/config.yml:

imports:
    - { resource: "@ExtraBundle/Resources/config/services.yml" }

Traits

  • Entity\Traits\ExtraDataTrait: Agrega un campo extraData de tipo JSON. Para agregar en una entidad, por ej. ONU
use ExtraDataBundle\Entity\Traits\ExtraDataTrait;

/**
 * @ORM\Entity
 */
class ONU
{

    use ExtraDataTrait;

Luego ejecutar

$ bin/console doctrine:schema:update --force