@@ -39,7 +39,7 @@ class ProducerPageSizer extends AbstractUtils | |||
{ | |||
$field = $this->getPageSizeConfigName($entity); | |||
if(isset($producer->$field) && $this->pageSizer->isPageSizeExist($pageSize)) { | |||
if($producer->hasAttribute($field) && $this->pageSizer->isPageSizeExist($pageSize)) { | |||
$producer->$field = $pageSize; | |||
$this->producerBuilder->update($producer); | |||
} |