src/Entity/EntityCustomField.php
public function createStrRepresentationOnFlush($flushEntity)
    {
        $entity = $this->getEntityData();
        if (is_array($entity) || $entity instanceof \ArrayAccess) {
            $entityArr = array();
            foreach ($entity as $elem) {
                $entityArr[] = $this->getEntityOnFlush($elem, $flushEntity);
            }
            return implode("\x1E", $entityArr); // ASCII "record separator" character
        } elseif ($entity) {
            return $this->getEntityOnFlush($entity, $flushEntity)->__toString();
        } else {
            return '';
        }
    }
public function createStrRepresentationOnFlush($flushEntity)
    {
        $entity = $this->getEntityData();
        if (is_array($entity) || $entity instanceof \ArrayAccess) {
            $entityArr = array();
            foreach ($entity as $elem) {
                $entityArr[] = $this->getEntityOnFlush($elem, $flushEntity);
            }
            return implode("\x1E", $entityArr); // ASCII "record separator" character
        } elseif ($entity) {
            return $this->getEntityOnFlush($entity, $flushEntity)->__toString();
        } else {
            return '';
        }
    }
public function createStrRepresentationOnFlush ( $ flushEntity ) { $ entity = $ this -> getEntityData ( ) ; if ( is_array ( $ entity ) || $ entity instanceof \ ArrayAccess ) { $ entityArr = array ( ) ; foreach ( $ entity as $ elem ) { $ entityArr [ ] = $ this -> getEntityOnFlush ( $ elem , $ flushEntity ) ; } return implode ( "\x1E" , $ entityArr ) ; // ASCII "record separator" character } elseif ( $ entity ) { return $ this -> getEntityOnFlush ( $ entity , $ flushEntity ) -> __toString ( ) ; } else { return '' ; } }
Override the default string representation creator method for the onFlush event

@return string
Override the default string representation creator method for the onFlush event