lib/MwbExporter/Model/Table.php
protected function getRelationReferenceCount($fkey, $max = null)
    {
        $count = 0;
        $tablename = $fkey->getReferencedTable()->getRawTableName();
        foreach ($this->getTableM2MRelations() as $relation) {
            // $relation key => reference (ForeignKey), refTable (Table)
            if ($this->checkReferenceTableName($relation['refTable'], $tablename)) {
                $count++;
            }
            if ($max && $count == $max) {
                break;
            }
        }

        return $count;
    }
protected function getRelationReferenceCount($fkey, $max = null)
    {
        $count = 0;
        $tablename = $fkey->getReferencedTable()->getRawTableName();
        foreach ($this->getTableM2MRelations() as $relation) {
            // $relation key => reference (ForeignKey), refTable (Table)
            if ($this->checkReferenceTableName($relation['refTable'], $tablename)) {
                $count++;
            }
            if ($max && $count == $max) {
                break;
            }
        }

        return $count;
    }
protected function getRelationReferenceCount ( $ fkey , $ max = null ) { $ count = 0 ; $ tablename = $ fkey -> getReferencedTable ( ) -> getRawTableName ( ) ; foreach ( $ this -> getTableM2MRelations ( ) as $ relation ) { // $relation key => reference (ForeignKey), refTable (Table) if ( $ this -> checkReferenceTableName ( $ relation [ 'refTable' ] , $ tablename ) ) { $ count ++ ; } if ( $ max && $ count == $ max ) { break ; } } return $ count ; }
Get the relation reference count.

@param \MwbExporter\Model\ForeignKey $fkey   The foreign key
@param int        $max    The maximum count
@return int
Get the relation reference count .