Package fr.adrienbrault.idea.symfony2plugin.doctrine.dict

Examples of fr.adrienbrault.idea.symfony2plugin.doctrine.dict.DoctrineModelFieldLookupElement


    public Object[] getVariants() {
        List<LookupElement> results = new ArrayList<LookupElement>();

        for(PhpClass phpClass: phpClasses) {
            for(DoctrineModelField field: EntityHelper.getModelFields(phpClass)) {
                results.add(new DoctrineModelFieldLookupElement(field));
            }
        }

        return results.toArray();
    }
View Full Code Here


            List<LookupElement> lookupElements = new ArrayList<LookupElement>();
            for(DoctrineModelField field: doctrineModelField) {
                String column = field.getColumn();
                if(column != null) {
                    lookupElements.add(new DoctrineModelFieldLookupElement(field).withLookupName(column));
                }
            }

            return lookupElements.toArray();
View Full Code Here

                return;
            }

            for(DoctrineModelField field: EntityHelper.getModelFields(phpClass)) {
                if(field.getRelation() != null) {
                    completionResultSet.addElement(new DoctrineModelFieldLookupElement(field));
                }
            }

        }
View Full Code Here

        List<LookupElement> lookupElements = new ArrayList<LookupElement>();

        Set<String> strings = new HashSet<String>();
        for(DoctrineModelField field: EntityHelper.getModelFields(this.phpClass)) {
            addCamelUnderscoreName(strings, org.apache.commons.lang.StringUtils.trim(field.getName()));
            lookupElements.add(new DoctrineModelFieldLookupElement(field).withBoldness(true));
        }

        // provide setter fallback for non model class or unknown methods
        for(Method method: this.phpClass.getMethods()) {
            String name = method.getName();
View Full Code Here

TOP

Related Classes of fr.adrienbrault.idea.symfony2plugin.doctrine.dict.DoctrineModelFieldLookupElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.