2017 © Pedro Peláez
 

symfony-bundle base-entities-bundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

image

blast-project/base-entities-bundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  • Friday, March 16, 2018
  • by beta
  • Repository
  • 2 Watchers
  • 1 Stars
  • 5,985 Installations
  • PHP
  • 13 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

SymfonyBlastBaseEntitiesBundle

Build Status Coverage Status License, (*1)

Latest Stable Version Latest Unstable Version Total Downloads, (*2)

This bundle provides some tools for a better integration of LibrinfoDoctrineBundle behaviours in Sonata Admin, (*3)

Installation

Prequiresites

  • having a working Symfony2 environment
  • having created a working Symfony2 app (including your DB and your DB link)
  • having composer installed (here in /usr/local/bin/composer, with /usr/local/bin in the path)

Downloading

$ composer require libre-informatique/base-entities-bundle dev-master, (*4)

Adding the bundle in your app

Edit your app/AppKernel.php file and add your "libre-informatique/base-entities-bundle" :, (*5)

    // app/AppKernel.php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...

            // The libre-informatique bundles
            new Blast\BaseEntitiesBundle\BlastCoreBundle(),
            new Blast\BaseEntitiesBundle\LibrinfoDoctrineBundle(),
            new Blast\BaseEntitiesBundle\BlastBaseEntitiesBundle(),

            // your personal bundles
        );
    }

Configuring the bundle

Activate the listeners you need in your application (add those lines to app/config/config.yml) :, (*6)

# Enable LibrinfoDocrineBundle event listeners
librinfo_doctrine:
    orm:
        default:
            naming: true
            guidable: true
            timestampable: true
            addressable: true
            treeable: true
            nameable: true
            labelable: true
            emailable: true
            descriptible: true
            searchable: true
            loggable: true
    # List of entity search-able indexed fields
    entity_search_indexes:
        Me\MyBundle\Entity\MyEntity:
            fields:
                - name
                - fulltextName
                - firstname
                - lastname
                - description
                - email
                - url

Add/remove the needed behaviours for each orm connection used by your application., (*7)

Under entity_search_indexes key, you can set search indexes for each entity that should be indexable., (*8)

Learn how to use the bundle

Doctrine Behaviors provided by the bundle

  • naming: provides a database table naming based on your vendor / bundle / entity
  • guidable: provides GUID primary keys to your entities
  • timestampable: provides createdAt / updatedAt fields and doctrine listeners to your entities
  • addressable: provides address fields to your entities (address, city, zip, country...)
  • treeable: provides tree structure to your entities
  • nameable: provides a name field to your entities
  • labelable: provides a label field to your entities
  • emailable: provides email related fields to your entities
  • descriptible: provides a description field to your entities
  • searchable: provides a search index based on a selection of fields
  • loggable: tracks your entities changes and is able to manage versions

Learn how to use them, how they work, and by extension learn how to create new behaviors shaped to your needs, reading the specific documentation., (*9)

Learn how to use the libre-informatique/base-entities-bundle

Specific Form Types

The bundle provides some form types, learn more about this, reading the specific documentation., (*10)

The Versions

16/03 2018

dev-wip-platform

dev-wip-platform https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0 LGPL-3.0-only

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

15/11 2017

dev-wip-lisem

dev-wip-lisem https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

03/11 2017

dev-master

9999999-dev https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

GPL-3.0 LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

03/11 2017

0.6.4

0.6.4.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

03/11 2017

0.5.3

0.5.3.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

19/10 2017

0.5.2

0.5.2.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

27/09 2017

dev-wip-locale

dev-wip-locale https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

15/09 2017

0.5.1

0.5.1.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

15/09 2017

dev-wip-test

dev-wip-test https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

28/07 2017

0.4.5

0.4.5.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

27/06 2017

0.4.4

0.4.4.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

15/06 2017

0.4.3

0.4.3.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

04/05 2017

0.4.2

0.4.2.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

17/03 2017

dev-sf3.2

dev-sf3.2 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

GPL-3.0

The Requires

 

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

07/03 2017

0.2

0.2.0.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

GPL-3.0

The Requires

 

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio

15/02 2017

0.1

0.1.0.0 https://github.com/blast-project/BaseEntitiesBundle

Base behaviors for Doctrine Entities in Libre Informatique Symfony2 projects

  Sources   Download

GPL-3.0

The Requires

 

by Baptiste SIMON
by Romain SANCHEZ

doctrine symfony sonata admin e-venement libio