protected function getExistingFields($entity)
    {
        /** @var FieldValueRepository $repo */
        $repo = $this->em->getRepository(Entity\FieldValue::class);

        return $repo->getExistingFields($entity->getId(), $entity->getContenttype(), $this->mapping['fieldname']);
    }
protected function getExistingFields($entity)
    {
        /** @var FieldValueRepository $repo */
        $repo = $this->em->getRepository(Entity\FieldValue::class);

        return $repo->getExistingFields($entity->getId(), $entity->getContenttype(), $this->mapping['fieldname']);
    }
protected function getExistingFields ( $ entity ) { /** @var FieldValueRepository $repo */ $ repo = $ this -> em -> getRepository ( Entity \ FieldValue :: class ) ; return $ repo -> getExistingFields ( $ entity -> getId ( ) , $ entity -> getContenttype ( ) , $ this -> mapping [ 'fieldname' ] ) ; }
Get existing fields for this record.

@param object $entity

@return array
Get existing fields for this record .