public function checkSecondaryRelationship($field)
    {
        return $this->table_descriptor->hasSecondaryConstraints() &&
            $this->table_descriptor->hasField($field) &&
            !$this->table_descriptor->hasPrimaryConstraintField($field) &&
            $this->table_descriptor->hasSecondaryConstraintWithFields(array($field))
        ;
    }
public function checkSecondaryRelationship($field)
    {
        return $this->table_descriptor->hasSecondaryConstraints() &&
            $this->table_descriptor->hasField($field) &&
            !$this->table_descriptor->hasPrimaryConstraintField($field) &&
            $this->table_descriptor->hasSecondaryConstraintWithFields(array($field))
        ;
    }
public function checkSecondaryRelationship ( $ field ) { return $ this -> table_descriptor -> hasSecondaryConstraints ( ) && $ this -> table_descriptor -> hasField ( $ field ) && ! $ this -> table_descriptor -> hasPrimaryConstraintField ( $ field ) && $ this -> table_descriptor -> hasSecondaryConstraintWithFields ( array ( $ field ) ) ; }
Check if table have and index related with other table and associate it.
@param string $field Field in $table to match.
@return bool Returns true if both tables are connected..
Check if table have and index related with other table and associate it .