Skip to content

Commit eae3144

Browse files
Merge pull request #3838 in SW/shopware from sw-14768/5.2/deprecate-addAttribute to 5.2
* commit '8d8cc92ec2c65b09ff12a1bb5b327e01fb7d930b': SW-14768 - Deprecate addAttribute and removeAttribute in ModelManager
2 parents 92f39b3 + 8d8cc92 commit eae3144

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

engine/Shopware/Components/Model/ModelManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ public function regenerateProxies()
298298
* @param bool $nullable Allow null property
299299
* @param null $default Default value of the column
300300
* @throws \InvalidArgumentException
301+
* @deprecated since version 5.2.2, to be removed in 5.3 - Use \Shopware\Bundle\AttributeBundle\Service\CrudService::update instead
301302
*/
302303
public function addAttribute($table, $prefix, $column, $type, $nullable = true, $default = null)
303304
{
@@ -350,6 +351,7 @@ public function addAttribute($table, $prefix, $column, $type, $nullable = true,
350351
* @param $prefix
351352
* @param $column
352353
* @throws \InvalidArgumentException
354+
* @deprecated since version 5.2.2, to be removed in 5.3 - Use \Shopware\Bundle\AttributeBundle\Service\CrudService::delete instead
353355
*/
354356
public function removeAttribute($table, $prefix, $column)
355357
{

0 commit comments

Comments
 (0)