Skip to content

Commit 8d8cc92

Browse files
ndzoeschOliver Skroblin
authored andcommitted
SW-14768 - Deprecate addAttribute and removeAttribute in ModelManager
1 parent 2a5d42a commit 8d8cc92

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)