Skip to content
Browse files

Add missing namespace declaration in archivable behavior.

Closes #238.
  • Loading branch information...
1 parent 209e34d commit 34bd8d658b346c299023a768d154f69edda09dce @fzaninotto fzaninotto committed Feb 13, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 generator/lib/behavior/archivable/ArchivableBehaviorObjectBuilderModifier.php
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;

0 comments on commit 34bd8d6

Please sign in to comment.
Something went wrong with that request. Please try again.