Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX Declaring has_many "Versions" relationship according to decora…

…ted class in Versioned->extraStatics()
  • Loading branch information...
commit 502131171bb61ecec38697111cd0c6a08f4e9e7f 1 parent 67cc18f
@chillu chillu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/model/Versioned.php
View
4 core/model/Versioned.php
@@ -95,13 +95,13 @@ function __construct($stages) {
$this->liveStage = array_pop($stages);
}
- function extraStatics() {
+ function extraStatics($class) {
return array(
'db' => array(
'Version' => 'Int',
),
'has_many' => array(
- 'Versions' => 'SiteTree',
+ 'Versions' => $class,
)
);
}

0 comments on commit 5021311

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