The fastest easiest way to get it right.

Unenforced Foreign Keys

It is possible in Andromeda to define a foreign key and then allow inserts that do not match in the parent table. This may seem strange or unnecessary, but there are benefits. Andromeda has many user interface features that are driven by foreign keys. If you want to use these features between two tables that sometimes match, then you can use the unenforced foreign key.

Use this feature by putting the "allow_orphan" property into a foreign key defintion:

table example_child:
    module: example
    
    foreign_key customers:
        allow_orphan: Y

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2