Permalink
Browse files

Merge pull request #289 from fzaninotto/archivable_namespace

Add missing namespace declaration in archivable behavior.
  • Loading branch information...
willdurand committed Feb 13, 2012
2 parents e9051d4 + 34bd8d6 commit f2d1cce32c9c41f963009a8427e89bb1336ff856
Showing with 3 additions and 0 deletions.
  1. +3 −0 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 f2d1cce

Please sign in to comment.