protected function checkPrimaryRelationship($table, $field, $position = 1)
    {
        return $this->table_name !== $table &&
            nb_strStartsWith($this->table_name, $table . '_') &&
            $this->table_descriptor->hasPrimaryConstraintField($field, $position)
        ;
    }
protected function checkPrimaryRelationship($table, $field, $position = 1)
    {
        return $this->table_name !== $table &&
            nb_strStartsWith($this->table_name, $table . '_') &&
            $this->table_descriptor->hasPrimaryConstraintField($field, $position)
        ;
    }
protected function checkPrimaryRelationship ( $ table , $ field , $ position = 1 ) { return $ this -> table_name !== $ table && nb_strStartsWith ( $ this -> table_name , $ table . '_' ) && $ this -> table_descriptor -> hasPrimaryConstraintField ( $ field , $ position ) ; }
Check if a table is related with another by their Primary Constraint.
@param string $table Table name to match.
@param string $field Field in $table to match.
@param false|int $position If setted, then determines the position where the field would be present. By default in
first position. If false, any position is valid.
@return bool Returns true if both tables are connected.
Check if a table is related with another by their Primary Constraint .