protected function getLdapObjectAnnotationProperties($entity, $om)
    {
        $properties = $om->getClassMetadata(get_class($entity))->getReflectionProperties();

        $ldapObjectProps = [];
        foreach ($properties as $prop) {
            $annotation = $this->reader->getPropertyAnnotation($prop, self::ANNOTATION);
            if (!empty($annotation)) {
                $ldapObjectProps[] = ['annotation' => $annotation, 'property' => $prop];
            }
        }

        return $ldapObjectProps;
    }
protected function getLdapObjectAnnotationProperties($entity, $om)
    {
        $properties = $om->getClassMetadata(get_class($entity))->getReflectionProperties();

        $ldapObjectProps = [];
        foreach ($properties as $prop) {
            $annotation = $this->reader->getPropertyAnnotation($prop, self::ANNOTATION);
            if (!empty($annotation)) {
                $ldapObjectProps[] = ['annotation' => $annotation, 'property' => $prop];
            }
        }

        return $ldapObjectProps;
    }
protected function getLdapObjectAnnotationProperties ( $ entity , $ om ) { $ properties = $ om -> getClassMetadata ( get_class ( $ entity ) ) -> getReflectionProperties ( ) ; $ ldapObjectProps = [ ] ; foreach ( $ properties as $ prop ) { $ annotation = $ this -> reader -> getPropertyAnnotation ( $ prop , self :: ANNOTATION ) ; if ( ! empty ( $ annotation ) ) { $ ldapObjectProps [ ] = [ 'annotation' => $ annotation , 'property' => $ prop ] ; } } return $ ldapObjectProps ; }
Get all the properties from the entity that have a LdapObject annotation defined.

@param object $entity
@param ObjectManager $om
@return array
Get all the properties from the entity that have a LdapObject annotation defined .