mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
0a5672a434
Includes the following large-scale changes: - Impoved barrier between model and view layers - Improved casting of scalar to relevant DBField types - Improved capabilities for rendering arbitrary data in templates
18 lines
342 B
PHP
18 lines
342 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Model\Tests\ModelDataTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\Model\ModelData;
|
|
|
|
class NotCached extends ModelData implements TestOnly
|
|
{
|
|
public $Test;
|
|
|
|
public function objCacheGet(string $fieldName, array $arguments = []): mixed
|
|
{
|
|
// Disable caching
|
|
return null;
|
|
}
|
|
}
|