Releases for sf 1.4
| Version |
License |
API |
Released |
|
0.9.1beta
|
MIT license |
0.9.1beta
|
21/03/2007 |
|
0.9.0beta
|
MIT license |
0.9.0beta
|
20/03/2007 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
0.9.1beta
|
MIT license |
0.9.1beta
|
21/03/2007 |
|
0.9.0beta
|
MIT license |
0.9.0beta
|
20/03/2007 |
Releases for sf 1.2
| Version |
License |
API |
Released |
|
0.9.1beta
|
MIT license |
0.9.1beta
|
21/03/2007 |
|
0.9.0beta
|
MIT license |
0.9.0beta
|
20/03/2007 |
Releases for sf 1.1
| Version |
License |
API |
Released |
|
0.9.1beta
|
MIT license |
0.9.1beta
|
21/03/2007 |
|
0.9.0beta
|
MIT license |
0.9.0beta
|
20/03/2007 |
Releases for sf 1.0
| Version |
License |
API |
Released |
|
0.9.1beta
|
MIT license |
0.9.1beta
|
21/03/2007 |
|
0.9.0beta
|
MIT license |
0.9.0beta
|
20/03/2007 |
Changelog for release 0.9.1 - 21/03/2007
Not available
Other releases
Release 0.9.1 - 21/03/2007
Not available
Release 0.9.0 - 20/03/2007
Not available
sfPropelUuidBehaviorPlugin plugin
The sfPropelUuidBehaviorPlugin is a symfony plugin that provides automatic generation of "Universally Unique IDentifier" for any propel object.
This is based on this specification : http://www.ietf.org/rfc/rfc4122.txt
Installation
Install the plugin
symfony plugin-install http://plugins.symfony-project.com/sfPropelUuidBehaviorPlugin
Enable Propel behavior support in propel.ini:
propel.builder.AddBehaviors = true
Add necessary fields to your model :
[xml]
Rebuild your database and model
[sh]
symfony propel-build-all
Enable the behavior for one of your Propel model:
<?php
// lib/model/Article.php
class Article
{
}
sfPropelBehavior::add('Article', array('sfPropelUuidBehavior'));
It is possible to specify another column for holding UUIDs :
[php]
<?php
// lib/model/Article.php
class Article
{
}
sfPropelBehavior::add('Article', array('sfPropelUuidBehavior' =>
array('columns' =>
array('uuid' => MyClassPeer::COLUMN_NAME))));
Usage
Each time an object is saved, the behavior will verify validity of its UUID.
A new UUID will be attributed to object if it does not already have one or if the one he has is not valid.
Public API
sfPropelUuidBehaviorToolkit
- (static)
string generateUuid() : Generates a Universally Unique IDentifier, version 4
- (static)
string isUuid(string $uuid) : Returns true if supplied string is a valid UUID
Changelog
2007-03-21 | 0.9.1 beta
- fixed typo
- fixed bug when using custom uuid column
- implemented
checkConfig() method (see forthcoming (?) patch in #1596)
2007-03-20 | 0.9 beta
Initial public release.