# Banner Attributes

**URL:** https://forum.shopware.com/t/banner-attributes/48245
**Category:** International (English Only)
**Tags:** programming
**Created:** [13. September 2017 um 15:41 UTC](https://forum.shopware.com/t/banner-attributes/48245 "2017-09-13T15:41:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.shopware.com/u/Maha)
#### Post date: [13. September 2017 um 15:41 UTC](https://forum.shopware.com/t/banner-attributes/48245/1 "2017-09-13T15:41:37Z")

</div>

Hi,

When I am trying to add a new Banner attributes in Backend I found that I cannot save it in the database. The attributes exist already in Database.

The fields are also in Backend view which&nbsp; I did it with attribute[textAbove] . The result of update Banner is:

```
**var\_dump($params):** array(15) { 

```

&nbsp; ["\_dc"]=\>  
&nbsp; string(13) “1505317143433”  
&nbsp; [“module”]=\>  
&nbsp; string(7) “backend”  
&nbsp; [“controller”]=\>  
&nbsp; string(6) “banner”  
&nbsp; [“action”]=\>  
&nbsp; string(12) “updateBanner”  
&nbsp; [“id”]=\>  
&nbsp; int(1)  
&nbsp; [“description”]=\>  
&nbsp; string(4) “test”  
&nbsp; [“link”]=\>  
&nbsp; string(0) “”  
&nbsp; [“media-manager-selection”]=\>  
&nbsp; string(0) “”  
&nbsp; [“linkTarget”]=\>  
&nbsp; string(6) “\_blank”  
&nbsp; [“categoryId”]=\>  
&nbsp; int(3)  
&nbsp; [“extension”]=\>  
&nbsp; string(3) “jpg”  
&nbsp; [“attribute”]=\>  
&nbsp; array(1) {  
&nbsp;&nbsp;&nbsp; [0]=\>  
&nbsp;&nbsp;&nbsp; array(4) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [“TextDown”]=\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string(0) “”  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [“TextAbove”]=\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string(11) "

test

"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [“id”]=\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int(1)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [“bannerId”]=\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int(1)  
&nbsp;&nbsp;&nbsp; }  
&nbsp; }  
&nbsp; [“validFrom”]=\>  
&nbsp; NULL  
&nbsp; [“validTo”]=\>  
&nbsp; NULL  
}

&nbsp;

**var\_dump($bannerModel):**  
object(Shopware\Models\Banner\Banner)#2437 (10) {  
&nbsp; [“id”:“Shopware\Models\Banner\Banner”:private]=\>  
&nbsp; int(1)  
&nbsp; [“description”:“Shopware\Models\Banner\Banner”:private]=\>  
&nbsp; string(4) “test”  
&nbsp; [“validFrom”:“Shopware\Models\Banner\Banner”:private]=\>  
&nbsp; NULL  
&nbsp; [“validTo”:“Shopware\Models\Banner\Banner”:private]=\>  
&nbsp; NULL  
&nbsp; [“link”:“Shopware\Models\Banner\Banner”:private]=\>  
&nbsp; string(0) “”  
&nbsp; [“linkTarget”:“Shopware\Models\Banner\Banner”:private]=\>  
&nbsp; string(6) “\_blank”  
&nbsp; [“categoryId”:“Shopware\Models\Banner\Banner”:private]=\>  
&nbsp; int(3)  
&nbsp; [“extension”:“Shopware\Models\Banner\Banner”:private]=\>  
&nbsp; string(3) “jpg”  
&nbsp; [“attribute”:protected]=\>  
&nbsp; object(Shopware\Models\Attribute\Banner)#2441 (5) {  
&nbsp;&nbsp;&nbsp; [“id”:protected]=\>  
&nbsp;&nbsp;&nbsp; int(1)  
&nbsp;&nbsp;&nbsp; [“bannerId”:protected]=\>  
&nbsp;&nbsp;&nbsp; int(1)  
&nbsp;&nbsp;&nbsp; [“TextDown”:protected]=\>  
&nbsp;&nbsp;&nbsp; NULL  
&nbsp;&nbsp;&nbsp; [“TextAbove”:protected]=\>  
&nbsp;&nbsp;&nbsp; NULL  
&nbsp;&nbsp;&nbsp; [“banner”:protected]=\>  
&nbsp;&nbsp;&nbsp; \*RECURSION\*  
&nbsp; }  
}

&nbsp;

the Attribute array are not the same!! any one can help me??

&nbsp;

&nbsp;
