Library/Bullhorn/FastRest/Generator/ControllerBuilder.php
private function getParentAndChildrenEntities() {
        $parentEntities = array();
        $childrenEntities = array();
        foreach($this->getModelBuilder()->getRelationships() as $relationship) {
            if($relationship->isPlural()) {
                $parentEntities[] = $relationship->getAlias() . '.*';
            } else {
                $childrenEntities[] = $relationship->getAlias() . '.*';
            }
        }

        return array($parentEntities, $childrenEntities);
    }
private function getParentAndChildrenEntities() {
        $parentEntities = array();
        $childrenEntities = array();
        foreach($this->getModelBuilder()->getRelationships() as $relationship) {
            if($relationship->isPlural()) {
                $parentEntities[] = $relationship->getAlias() . '.*';
            } else {
                $childrenEntities[] = $relationship->getAlias() . '.*';
            }
        }

        return array($parentEntities, $childrenEntities);
    }
private function getParentAndChildrenEntities ( ) { $ parentEntities = array ( ) ; $ childrenEntities = array ( ) ; foreach ( $ this -> getModelBuilder ( ) -> getRelationships ( ) as $ relationship ) { if ( $ relationship -> isPlural ( ) ) { $ parentEntities [ ] = $ relationship -> getAlias ( ) . '.*' ; } else { $ childrenEntities [ ] = $ relationship -> getAlias ( ) . '.*' ; } } return array ( $ parentEntities , $ childrenEntities ) ; }
Return the parent and children entities for this model
@return array
Return the parent and children entities for this model