2017 © Pedro Peláez
 

library platform-serialised-fields

Oro Platform Serialized Fields

image

oplatform-club/platform-serialised-fields

Oro Platform Serialized Fields

  • Sunday, December 31, 2017
  • by mage2pro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 45 Versions
  • 0 % Grown

The README.md

OroEntitySerializedFieldsBundle

This document contains a little introduction into "Oro Entity Serialized Fields" package, information on how to download and install., (*1)

Table of content

Fundamentals

ORO Platform provides ability to have custom entities or extend entities with new custom fields., (*2)

The package allows to avoid schema update when you create custom field. Although this field come with some restrictions., (*3)

Such fields data stores in serialized_data column as serialized array. Field serialized_data is hidden from UI in entity config page., (*4)

Not supported features:, (*5)

  • grid filtering and sorting
  • segments and reports
  • charts
  • search
  • relations, enums and option set field types
  • data audit
  • usage of such fields in Doctrine query builder

After installation (described below) a new field called Storage Type appears within New field creation page where you will be offered to choose between two storage types:, (*6)

  • Table Column option will allow to create custom field as usual;
  • Serialized field option means that you can avoid schema update and start to use this field imediately, but should take into account, that field types are limited in this case to:
    • string
    • integer
    • smallint
    • bigint
    • boolean
    • decimal
    • date
    • datetime
    • text
    • float
    • money
    • percent

To create a serialized field via migration the SerializedFieldsExtension can be used. Here is an example:, (*7)

<?php

namespace Acme\Bundle\AppBundle\Migrations\Schema\v1_1;

use Doctrine\DBAL\Schema\Schema;

use Oro\Bundle\EntityExtendBundle\EntityConfig\ExtendScope;
use Oro\Bundle\EntitySerializedFieldsBundle\Migration\Extension\SerializedFieldsExtension;
use Oro\Bundle\EntitySerializedFieldsBundle\Migration\Extension\SerializedFieldsExtensionAwareInterface;
use Oro\Bundle\MigrationBundle\Migration\Migration;
use Oro\Bundle\MigrationBundle\Migration\QueryBag;

class AddSerializedFieldMigration implements
    Migration,
    SerializedFieldsExtensionAwareInterface
{
    /** @var SerializedFieldsExtension */
    protected $serializedFieldsExtension;

    /**
     * {@inheritdoc}
     */
    public function setSerializedFieldsExtension(SerializedFieldsExtension $serializedFieldsExtension)
    {
        $this->serializedFieldsExtension = $serializedFieldsExtension;
    }

    /**
     * {@inheritdoc}
     */
    public function up(Schema $schema, QueryBag $queries)
    {
        $this->serializedFieldsExtension->addSerializedField(
            $schema->getTable('my_table'),
            'my_serialized_field',
            'string',
            [
                'extend'    => [
                    'owner' => ExtendScope::OWNER_CUSTOM,
                ]
            ]
        );
    }
}

Requirements

OroEntitySerializedFieldsBundle requires OROPlatform(BAP) and PHP 7.0 or above., (*8)

Installation

Package is available through Oro Package Manager. For development purposes it might be cloned from github repository directly., (*9)

git clone git@github.com:orocrm/OroEntitySerializedFieldsBundle.git
git submodule init
git submodule update

Update your composer.json with, (*10)

   "autoload": {
        "psr-0": {
...
            "Oro\\Bundle": ["src/Oro/src", "src/OroPackages/src"],
...            
        }
    },
php composer.phar update
php app/console oro:platform:update --force

Run unit tests

To run unit tests for this package:, (*11)

phpunit -c PACKAGE_ROOT/phpunit.xml.dist

The Versions

31/12 2017

dev-master

9999999-dev https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

31/12 2017

2.5.1

2.5.1.0 https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

15/11 2017

2.5.x-dev

2.5.9999999.9999999-dev https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

15/11 2017

2.5.0

2.5.0.0 https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

27/09 2017

2.3.x-dev

2.3.9999999.9999999-dev https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

27/09 2017

2.3.1

2.3.1.0 https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

27/09 2017

2.4.x-dev

2.4.9999999.9999999-dev https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

27/09 2017

2.4.0

2.4.0.0 https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

09/08 2017

1.5.x-dev

1.5.9999999.9999999-dev https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

09/08 2017

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

28/07 2017

2.2.x-dev

2.2.9999999.9999999-dev https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

28/07 2017

2.3.0

2.3.0.0 https://github.com/oroinc/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

31/05 2017

2.2.0

2.2.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

05/04 2017

2.0.2

2.0.2.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

22/03 2017

2.1.x-dev

2.1.9999999.9999999-dev https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

22/03 2017

2.1.0

2.1.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

06/02 2017

2.0.1

2.0.1.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

16/01 2017

2.0.0

2.0.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

30/12 2016

dev-2.0-rc

dev-2.0-rc https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

30/12 2016

2.0.0-rc.1

2.0.0.0-RC1 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

29/12 2016

2.0.0-beta.1

2.0.0.0-beta1 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

11/10 2016

1.5.1-beta.4

1.5.1.0-beta4 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

08/10 2016

1.5.1

1.5.1.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

14/08 2016

1.5.0

1.5.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

04/08 2016

1.4.x-dev

1.4.9999999.9999999-dev https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

04/08 2016

1.4.2

1.4.2.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

02/08 2016

1.3.x-dev

1.3.9999999.9999999-dev https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

25/07 2016

1.5.0-beta.3

1.5.0.0-beta3 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

30/05 2016

1.5.0-beta.2

1.5.0.0-beta2 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

06/04 2016

1.4.1

1.4.1.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

06/04 2016

1.5.0-alpha2

1.5.0.0-alpha2 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

06/04 2016

1.5.0-beta.1

1.5.0.0-beta1 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

22/02 2016

1.5.0-alpha1

1.5.0.0-alpha1 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

12/02 2016

1.4.0

1.4.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

26/01 2016

1.2.x-dev

1.2.9999999.9999999-dev https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

26/01 2016

1.2.1

1.2.1.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

26/01 2016

1.3.3

1.3.3.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

26/10 2015

1.3.2

1.3.2.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

23/09 2015

1.3.1

1.3.1.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

30/08 2015

1.3.0

1.3.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

24/04 2015

1.2.0

1.2.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

30/12 2014

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

30/12 2014

1.1.0

1.1.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

22/12 2014

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro

22/12 2014

1.0.0

1.0.0.0 https://github.com/orocrm/OroEntitySerializedFieldsBundle

Oro Platform Serialized Fields

  Sources   Download

OSL-3.0

The Requires

 

entity platform fields oro