I am having trouble defining this releationship.
What would be the best way to define a relationship when the fk of my
database depends in a boolean value. if is true then the fk is equal
to table1 but if is false the fk is equal to table2.
This is my example

clients
     id i(nt)
     name (varchar)
     isabussiness (bool)
     bussiness_or_person_id <= 'I don't know how to call this fk since
it can change if the client            is a bussiness o a person.'


Bussinness
       id
        name
        taxserialnumber

persons
       id
        firstname
       lastname

How should I set up the model clients?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to