Subscribers/GdprSubscriber.php
/**
     * Processes the entity for an onFlush event.
     *
     * @param object $entity
     * @param EntityManager $em
     */
Processes the entity for an onFlush event.
@param object $entity
@param EntityManager $em
Processes the entity for an onFlush event . @param object $entity @param EntityManager $em
protected function entityOnFlush($entity, EntityManager $em, $isNewEntity = true)
    {
        $objId = spl_object_hash($entity);
        $fields = array();
        foreach ($this->getPersonalDataFields($entity, $em) as $field) {
            $fields[$field->getName()] = array(
                'field' => $field,
                'value' => $field->getValue($entity),
            );
        }
        $this->postFlushDecryptQueue[$objId] = array(
            'entity' => $entity,
            'fields' => $fields,
        );
        $this->processFields($entity, $em, true,  $isNewEntity);
    }
protected function entityOnFlush ( $ entity , EntityManager $ em , $ isNewEntity = true ) { $ objId = spl_object_hash ( $ entity ) ; $ fields = array ( ) ; foreach ( $ this -> getPersonalDataFields ( $ entity , $ em ) as $ field ) { $ fields [ $ field -> getName ( ) ] = array ( 'field' => $ field , 'value' => $ field -> getValue ( $ entity ) , ) ; } $ this -> postFlushDecryptQueue [ $ objId ] = array ( 'entity' => $ entity , 'fields' => $ fields , ) ; $ this -> processFields ( $ entity , $ em , true , $ isNewEntity ) ; }
Processes the entity for an onFlush event.
Processes the entity for an onFlush event .