{ | { | ||||
$field = $this->getPageSizeConfigName($entity); | $field = $this->getPageSizeConfigName($entity); | ||||
if(isset($producer->$field) && $this->pageSizer->isPageSizeExist($pageSize)) { | |||||
if($producer->hasAttribute($field) && $this->pageSizer->isPageSizeExist($pageSize)) { | |||||
$producer->$field = $pageSize; | $producer->$field = $pageSize; | ||||
$this->producerBuilder->update($producer); | $this->producerBuilder->update($producer); | ||||
} | } |