Skip to content

Commit

Permalink
Merge branch '5' into 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Feb 11, 2025
2 parents 2856b26 + c5f05de commit 0023b58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ORM/FieldType/DBInt.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use SilverStripe\Core\Validation\FieldValidation\IntFieldValidator;
use SilverStripe\Forms\FormField;
use SilverStripe\Dev\Deprecation;
use SilverStripe\Forms\NumericField;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\ORM\DB;
Expand Down Expand Up @@ -65,8 +66,12 @@ public function requireField(): void
DB::require_field($this->tableName, $this->name, $values);
}

/**
* @deprecated 5.4.0 Will be removed without equivalent functionality to replace it
*/
public function Times(): SS_List
{
Deprecation::noticeWithNoReplacment('5.4.0');
$output = new ArrayList();
for ($i = 0; $i < $this->value; $i++) {
$output->push(ArrayData::create(['Number' => $i + 1]));
Expand Down

0 comments on commit 0023b58

Please sign in to comment.