src/Repository/DoctrineResourceRepository.php
protected function fillAttributes($resource, array $attributes)
    {
        foreach ($attributes as $attribute => $value) {
            $setter = "set" . ucfirst($attribute);

            if (method_exists($resource, $setter)) {
                $resource->$setter($value);
            }
        }
    }
protected function fillAttributes($resource, array $attributes)
    {
        foreach ($attributes as $attribute => $value) {
            $setter = "set" . ucfirst($attribute);

            if (method_exists($resource, $setter)) {
                $resource->$setter($value);
            }
        }
    }
protected function fillAttributes ( $ resource , array $ attributes ) { foreach ( $ attributes as $ attribute => $ value ) { $ setter = "set" . ucfirst ( $ attribute ) ; if ( method_exists ( $ resource , $ setter ) ) { $ resource -> $ setter ( $ value ) ; } } }
Sets all the properties on the entity.

@param mixed $resource
@param array $attributes
@return void
Sets all the properties on the entity .