Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9205945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:04:30+00:00 2026-06-18T00:04:30+00:00

I am using propel PHP: The foreign key attries are not getting depended on

  • 0

I am using propel PHP: The foreign key attries are not getting depended on the parent table. The Creations, updates, deletes are taken place in parent is not effecting the child table.

foreign-key elements like onupdate,ondelete,skipsql is not acceping by the propel and error’s like this

DOMDocument::schemaValidate(): Element ‘foreign-key’, attribute ‘ondelete’,’onupdate’,’skipsql’

The attribute is not allowing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:04:31+00:00Added an answer on June 18, 2026 at 12:04 am

    I got it, it’s syntax mistake in my xml file.

    <table name="names" phpName="Name">
    <column name="nameid" phpName="Nid" type="integer" size="11" required="true" primaryKey="true"
    autoIncrement="true" description="Name ID"/>
    <column name="name" phpName="Name" type="varchar" size="50" required="true"
    description="Name"/>
    <validator column="name">
    <rule name="required" message="Name is Required"/>
    <rule name="minLength" value="3" message="Enter Valid Full-Name, Minimum of 3 characters"/>
    <rule name="maxLength" value="20" message="Invalid Entry"/>
    <rule name="match" value="/^[\w]+$/" message="No Special Character Allowed"/>
    <rule name="unique" />
    </validator>
    </table>
    
    <table name="relations" phpName="Relations">
    <column name="rid" type="integer" size="11" required="true" primaryKey="true" autoIncrement="true"
    description="Relational ID"/>
    
    <column name="pnid" type="integer" size="11" required="true" description="name User ID"/>
    
    <column name="rnid" type="integer" size="11" required="true" description="name Relationship ID"/>
    
    <column name="relation" type="varchar" size="100" required="true" description="Relationship"/>
    
    <validator column="relation">
    <rule name="required" message="Relationship Type is Required" />
    <rule name="match" value="/^([\w])+([\.\w\-]+)+$/" message="Enter a Valid String" />
    <rule name="minLength" value="3" message="Enter a Valid Relation Ship"/>
    <rule name="maxLength" value="20" message="Invalid Entry"/>
    </validator>
    
    <foreign-key foreignTable="names" onUpdate="CASCADE" onDelete="CASCADE">
    <reference local="pnid" foreign="nid" />
    <reference local="rnid" foreign="nid" />
    </foreign-key>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using the propel runtime v1.5.4 and its related propel_generator in my zend_framework/php
First post here... I normally develop using PHP and Symfony with Propel and ActionScript
I have this setup in a PHP project using Propel (which I'm new to).
I am using Propel, a PHP ORM. I really like it. I love to
Seeking suggestions from PHP architects! I'm not terribly familiar with PHP but have taken
I'm using v1.3 of the Propel PHP framework for an application, and I can't
Using PHP I am displaying row's of data in a table. Each row is
I need to force reread data from DB within one php execution, using propel.
I am using Symfony 1.4 as PHP framework, with Propel as ORM. I downloaded
I like creating my PHP functions using key=>value pairs (arrays) as arguments instead of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.