public function checkPrimaryConstraint()
    {
        $retval = false;
        $this->is_translation = false;

        if (($retval = $this->table_descriptor->hasPrimaryConstraint())) {
            if ($this->table_descriptor->getPrimaryConstraintSize() > 1) {
                $this->is_translation =
                    $this->table_descriptor->hasPrimaryConstraintField(NABU_LANG_FIELD_ID, 2);
                $this->is_customer_child =
                    $this->checkPrimaryRelationship(NABU_CUSTOMER_TABLE, NABU_CUSTOMER_FIELD_ID);
                $this->is_commerce_child =
                    $this->checkPrimaryRelationship(NABU_COMMERCE_TABLE, NABU_COMMERCE_FIELD_ID);
                $this->is_catalog_child =
                    $this->checkPrimaryRelationship(NABU_CATALOG_TABLE, NABU_CATALOG_FIELD_ID);
                $this->is_site_child =
                    $this->checkPrimaryRelationship(NABU_SITE_TABLE, NABU_SITE_FIELD_ID);
                $this->is_site_target_child =
                    $this->checkPrimaryRelationship(NABU_SITE_TARGET_TABLE, NABU_SITE_TARGET_FIELD_ID);
                $this->is_medioteca_child =
                    $this->checkPrimaryRelationship(NABU_MEDIOTECA_TABLE, NABU_MEDIOTECA_FIELD_ID);
                $this->is_messaging_child =
                    $this->checkPrimaryRelationship(NABU_MESSAGING_TABLE, NABU_MESSAGING_FIELD_ID);
                $this->is_messaging_service_child =
                    $this->checkPrimaryRelationship(NABU_MESSAGING_SERVICE_TABLE, NABU_MESSAGING_SERVICE_FIELD_ID);
                $this->is_project_child =
                    $this->checkPrimaryRelationship(NABU_PROJECT_TABLE, NABU_PROJECT_FIELD_ID);
                $this->is_role_child =
                    $this->checkPrimaryRelationship(NABU_ROLE_TABLE, NABU_ROLE_FIELD_ID);
            }
        }

        return $retval;
    }
public function checkPrimaryConstraint()
    {
        $retval = false;
        $this->is_translation = false;

        if (($retval = $this->table_descriptor->hasPrimaryConstraint())) {
            if ($this->table_descriptor->getPrimaryConstraintSize() > 1) {
                $this->is_translation =
                    $this->table_descriptor->hasPrimaryConstraintField(NABU_LANG_FIELD_ID, 2);
                $this->is_customer_child =
                    $this->checkPrimaryRelationship(NABU_CUSTOMER_TABLE, NABU_CUSTOMER_FIELD_ID);
                $this->is_commerce_child =
                    $this->checkPrimaryRelationship(NABU_COMMERCE_TABLE, NABU_COMMERCE_FIELD_ID);
                $this->is_catalog_child =
                    $this->checkPrimaryRelationship(NABU_CATALOG_TABLE, NABU_CATALOG_FIELD_ID);
                $this->is_site_child =
                    $this->checkPrimaryRelationship(NABU_SITE_TABLE, NABU_SITE_FIELD_ID);
                $this->is_site_target_child =
                    $this->checkPrimaryRelationship(NABU_SITE_TARGET_TABLE, NABU_SITE_TARGET_FIELD_ID);
                $this->is_medioteca_child =
                    $this->checkPrimaryRelationship(NABU_MEDIOTECA_TABLE, NABU_MEDIOTECA_FIELD_ID);
                $this->is_messaging_child =
                    $this->checkPrimaryRelationship(NABU_MESSAGING_TABLE, NABU_MESSAGING_FIELD_ID);
                $this->is_messaging_service_child =
                    $this->checkPrimaryRelationship(NABU_MESSAGING_SERVICE_TABLE, NABU_MESSAGING_SERVICE_FIELD_ID);
                $this->is_project_child =
                    $this->checkPrimaryRelationship(NABU_PROJECT_TABLE, NABU_PROJECT_FIELD_ID);
                $this->is_role_child =
                    $this->checkPrimaryRelationship(NABU_ROLE_TABLE, NABU_ROLE_FIELD_ID);
            }
        }

        return $retval;
    }
public function checkPrimaryConstraint ( ) { $ retval = false ; $ this -> is_translation = false ; if ( ( $ retval = $ this -> table_descriptor -> hasPrimaryConstraint ( ) ) ) { if ( $ this -> table_descriptor -> getPrimaryConstraintSize ( ) > 1 ) { $ this -> is_translation = $ this -> table_descriptor -> hasPrimaryConstraintField ( NABU_LANG_FIELD_ID , 2 ) ; $ this -> is_customer_child = $ this -> checkPrimaryRelationship ( NABU_CUSTOMER_TABLE , NABU_CUSTOMER_FIELD_ID ) ; $ this -> is_commerce_child = $ this -> checkPrimaryRelationship ( NABU_COMMERCE_TABLE , NABU_COMMERCE_FIELD_ID ) ; $ this -> is_catalog_child = $ this -> checkPrimaryRelationship ( NABU_CATALOG_TABLE , NABU_CATALOG_FIELD_ID ) ; $ this -> is_site_child = $ this -> checkPrimaryRelationship ( NABU_SITE_TABLE , NABU_SITE_FIELD_ID ) ; $ this -> is_site_target_child = $ this -> checkPrimaryRelationship ( NABU_SITE_TARGET_TABLE , NABU_SITE_TARGET_FIELD_ID ) ; $ this -> is_medioteca_child = $ this -> checkPrimaryRelationship ( NABU_MEDIOTECA_TABLE , NABU_MEDIOTECA_FIELD_ID ) ; $ this -> is_messaging_child = $ this -> checkPrimaryRelationship ( NABU_MESSAGING_TABLE , NABU_MESSAGING_FIELD_ID ) ; $ this -> is_messaging_service_child = $ this -> checkPrimaryRelationship ( NABU_MESSAGING_SERVICE_TABLE , NABU_MESSAGING_SERVICE_FIELD_ID ) ; $ this -> is_project_child = $ this -> checkPrimaryRelationship ( NABU_PROJECT_TABLE , NABU_PROJECT_FIELD_ID ) ; $ this -> is_role_child = $ this -> checkPrimaryRelationship ( NABU_ROLE_TABLE , NABU_ROLE_FIELD_ID ) ; } } return $ retval ; }
Check the Primary Constraint to determine if class can be built.
@return bool Returns true if the Primary Key is valid.
Check the Primary Constraint to determine if class can be built .