Add: some usefull methods to Versionable objects #319

Merged
merged 1 commit into from Mar 26, 2012

Projects

None yet

2 participants

@K-Phoen
K-Phoen commented Mar 20, 2012

This PR adds two methods to versionable objects:

  • getLastVersions($max, $criteria, $con): retrieves the $max last
    versions
  • compareVersion($number): compares the current object to a given
    version.

I also added the $ignoredColumns parameter to the compareVersion(s)
methods.

@K-Phoen K-Phoen Add: some usefull methods to Versionable objects
This PR adds two methods to versionable objects:

  * `getLastVersions($max, $criteria, $con)`: retrieves the $max last
    versions
  * `compareVersion($number)`: compares the current object to a given
    version.

I also added the `$ignoredColumns` parameter to the compareVersion(s)
methods.
7769218
@willdurand willdurand merged commit 14b9ac1 into propelorm:master Mar 26, 2012
@willdurand
Member

Thanks! Don't forget to port your patch on Propel2 as well ;)

@K-Phoen K-Phoen referenced this pull request in propelorm/Propel2 Mar 30, 2012
Merged

Fix: port of the PR #319 from Propel #162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment