Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add missing namespace declaration in archivable behavior. #289

Merged
merged 1 commit into from

2 participants

@fzaninotto
Collaborator

Closes #238.

@willdurand
Owner

Thanks

@willdurand willdurand merged commit f2d1cce into propelorm:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 13, 2012
  1. @fzaninotto
This page is out of date. Refresh to see the latest.
View
3  generator/lib/behavior/archivable/ArchivableBehaviorObjectBuilderModifier.php
@@ -34,6 +34,9 @@ protected function getParameter($key)
*/
public function objectAttributes($builder)
{
+ if (!$this->behavior->hasArchiveClass()) {
+ $builder->declareClassFromBuilder($builder->getNewStubQueryBuilder($this->behavior->getArchiveTable()));
+ }
$script = '';
if ($this->behavior->isArchiveOnInsert()) {
$script .= "protected \$archiveOnInsert = true;
Something went wrong with that request. Please try again.