generated from silverstripe/silverstripe-module
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…64)
- Loading branch information
1 parent
4a10c31
commit d4c1624
Showing
5 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace Terraformers\KeysForCache\Tests\Mocks\Models; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\ORM\DataObject; | ||
use SilverStripe\ORM\HasManyList; | ||
use SilverStripe\Versioned\Versioned; | ||
use Terraformers\KeysForCache\Extensions\CacheKeyExtension; | ||
use Terraformers\KeysForCache\Tests\Mocks\Pages\CaresPage; | ||
|
||
/** | ||
* This model is referenced by CaresPage as a has_one, meaning that this model has a has_many back to CaresPage | ||
* | ||
* @property string $Title | ||
* @method HasManyList|CaresPage CaresPages() | ||
* @mixin Versioned | ||
* @mixin CacheKeyExtension | ||
*/ | ||
class CaredHasOneVersionedNonStaged extends DataObject implements TestOnly | ||
{ | ||
private static array $db = [ | ||
'Title' => 'Varchar', | ||
]; | ||
|
||
private static array $has_many = [ | ||
'CaresPages' => CaresPage::class, | ||
]; | ||
|
||
private static array $extensions = [ | ||
Versioned::class.'.versioned', | ||
]; | ||
|
||
private static string $table_name = 'CaredHasOneVersionedNonStaged'; | ||
|
||
private static bool $has_cache_key = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters