2017 © Pedro Peláez
 

library propel-uuid-behavior

Propel behavior that helps you to set fixed UUID

image

badlamer/propel-uuid-behavior

Propel behavior that helps you to set fixed UUID

  • Wednesday, November 25, 2015
  • by badlamer
  • Repository
  • 1 Watchers
  • 6 Stars
  • 5,716 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

UuidBehavior

Helps you add UUID for propel ActiveRecord, (*1)

Build Status, (*2)

Requirements

This behavior requires Propel >= 1.6.0 and Ramsey\Uuid for PHP >= 5.4, (*3)

Installation

Get the code by cloning this repository, or by using Composer (recommended):, (*4)

{
    "require": {
        "badlamer/propel-uuid-behavior": "dev-master"
    }
}

Then, if you don't use Composer, or an autoloader in your application, add the following configuration to your build.properties or propel.ini file:, (*5)

propel.behavior.uuid.class = vendor.badlamer.propel-uuid-behavior.src.UuidBehavior

Note: vendor.badlamer.propel-uuid-behavior.src.UuidBehavior is the path to access the UuidBehavior class in "dot-path" notation., (*6)

Then declare the behavior in your schema.xml:, (*7)

<table name="person">
  <!--
    Explict define a column, else the beavior would create a colum called "uuid".
    We need to have at least one column with primaryKey="true" to avoid the error:
      >>Fatal error: Uncaught Error: Call to a member function getPhpName() on null in [...] vendor/propel/propel1/generator/lib/builder/om/QueryBuilder.php:478<<
  -->
  <column name="id" type="CHAR" size="36" required="true" primaryKey="true" />

  <!--
    We are linking the column with the name >>id<< to the behavior.
    Now the uuid generation is used for each new created entity.
  -->
  <behavior name="uuid">
    <parameter name="name" value="id" />
  </behavior>
</table>

The Versions

25/11 2015

dev-master

9999999-dev

Propel behavior that helps you to set fixed UUID

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yuri Druzhkov

uuid behavior propel

18/11 2015

0.2.0

0.2.0.0

Propel behavior that helps you to set fixed UUID

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yuri Druzhkov

uuid behavior propel

27/07 2015

0.1.0

0.1.0.0

Propel behavior that helps you to set fixed UUID

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yuri Druzhkov

uuid behavior propel

21/03 2014

0.0.4

0.0.4.0

Propel behavior that helps you to set fixed UUID

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yuri Druzhkov

uuid behavior propel

21/01 2014

0.0.2

0.0.2.0

Propel behavior that helps you to set fixed UUID

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yuri Druzhkov

uuid behavior propel

21/11 2013

0.0.1

0.0.1.0

Propel behavior that helps you to set fixed UUID

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yuri Druzhkov

uuid behavior propel