public function action($contentTypeName, array $changeRequest)
    {
        foreach ($changeRequest as $recordId => $actionData) {
            if ($actionData === null) {
                continue;
            }

            $repo = $this->em->getRepository($contentTypeName);
            foreach ($actionData as $action => $fieldData) {
                if (!$entity = $repo->find($recordId)) {
                    continue;
                }
                $this->modifyContentTypeRecord($repo, $entity, $action, $fieldData);
            }
        }
    }
public function action($contentTypeName, array $changeRequest)
    {
        foreach ($changeRequest as $recordId => $actionData) {
            if ($actionData === null) {
                continue;
            }

            $repo = $this->em->getRepository($contentTypeName);
            foreach ($actionData as $action => $fieldData) {
                if (!$entity = $repo->find($recordId)) {
                    continue;
                }
                $this->modifyContentTypeRecord($repo, $entity, $action, $fieldData);
            }
        }
    }
public function action ( $ contentTypeName , array $ changeRequest ) { foreach ( $ changeRequest as $ recordId => $ actionData ) { if ( $ actionData === null ) { continue ; } $ repo = $ this -> em -> getRepository ( $ contentTypeName ) ; foreach ( $ actionData as $ action => $ fieldData ) { if ( ! $ entity = $ repo -> find ( $ recordId ) ) { continue ; } $ this -> modifyContentTypeRecord ( $ repo , $ entity , $ action , $ fieldData ) ; } } }
Modify an individual ContentType's records.

@param string $contentTypeName ContentType slug
@param array  $changeRequest   Change array in the format of:
[id => [action => [field => value]]]
Modify an individual ContentType s records .