Banner Attributes

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  I did it with attribute[textAbove] . The result of update Banner is:

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

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

test

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

 

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

 

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