Skip to content

Missing info about columns for versionable behavior #2

Open
willdurand opened this Issue Aug 4, 2011 · 2 comments

3 participants

@willdurand
Propel member

There is no info what are column names generated after adding those parameters:

<behavior name="versionable">
  <parameter name="log_created_at" value="true" />
  <parameter name="log_created_by" value="true" />
  <parameter name="log_comment" value="true" />
</behavior>

And that their types and names can be changed.


Imported from: http://www.propelorm.org/ticket/1488

@fzaninotto
Propel member

@rozwell: your patch on the Propel Trac doesn not relate to this isse. What is it exactly about? Can you add a unit test to prove the problem?

@rozwell
rozwell commented Oct 13, 2011

@fzaninotto: About the patch: it's not a problem, it's a feature!
Currently when you use $article->getOneVersion(1) on an Article you'll get an object from versionable table which has no foreign key references of the original article and you'll have to get all relations manually.

The patch adds them so you can easily get Author of an archived Article via $article->getOneVersion(1)->getAuthor() which would originally fail because versioned object had no references.

@simmstein simmstein added a commit to simmstein/Propel that referenced this issue Jul 18, 2013
@simmstein simmstein Objects's serialization in the XML export #2 39f581d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.