[Solar-talk] Question about Using SolarModels to defin tables
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Feb 6 07:58:13 CST 2008
On Feb 6, 2008 11:51 AM, Rodrigo Moraes wrote:
> > Is it possible to set up on delete/update cascade, restrict, etc rules on
> > the tables?
>
> Not automatically. You can do this manually using Solar_Sql and SQL
> queries inside your model, though.
Ah, forgot this: there're some hooks in the records for preSave() /
postSave() / preDelete() / etc. Not the same as setting rules in the
database itself, but maybe can help. To add rules in the database, you
should use plain SQL.
-- rodrigo
More information about the Solar-talk
mailing list