Bill Karwin wrote:
To reduce the frequency with which it queries the table's metadata, you
can specify a Zend_Cache object when you create instances of
Zend_Db_Table classes.
Read the documentation for Zend_Db_Table
(http://framework.zend.com/manual/en/zend.db.table.html), in the section
"Caching Table Metadata".
Ok that should work.
Zend Framework doesn't do RAD-type hookups between forms and tables at
this time. We're investigating ways of providing some of that in the
future, but it's a long-term effort. We'll probably get there in steps.
No problem, ill just stick to what im using now, but it will require
also using another set of model classes for db_dataobject or just use
those instead of zend.
Thanks for the tip on generating I'll build a shell script
for that to update them or whatever I guess. Is thats all
thats required, just to have empty classes ?
That's the simple case, and it will work, given the defaults that I
described regarding table names, primary keys, and column lists. In
most cases, you can rely on the default code inherited from the abstract
table class which your tables extend. If you need any custom logic in
your table classes, you'll have to add it to the skeleton classes.
Likewise if you want to declare referential relationships between
tables, you need to write these declarations in your table classes (see
http://framework.zend.com/manual/en/zend.db.table.relationships.html).
Ok yeh i saw that one, if i have some time, I'll take a look at a
generator which could possibly get those relationships from a foreign
key schema or whatever. Mind you Im not one for
stubs or code generators, only want it for the data models :)