This commit is contained in:
2023-04-10 11:19:37 +08:00
parent 37009c3f59
commit c77b2ef3eb
+1 -1
View File
@@ -1019,7 +1019,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
*/
public static function populate(array $data): static
{
$model = replica(static::class);
$model = instance(static::class);
$model->_attributes = $data;
$model->_oldAttributes = $data;
$model->setIsNowExample(FALSE);