Re: [Postfixadmin-devel] refactoring [ZF stuff]
Brought to you by:
christian_boltz,
gingerdog
From: David G. <da...@co...> - 2008-07-29 20:59:27
|
21:36 < lenix> ok, i've made a first step and managed to dump the model of my current db-structure into some PHP/ZendFramework code 21:36 < lenix> see http://lenix.de/pfaModel.phps and http://lenix.de/pfaModel.sql 21:37 < lenix> see http://framework.zend.com/manual/en/zend.db.table.relationships.html#zend.db.table.relationships.cascading for onDelete/onUpdate 21:38 < GingerDog> looks good 21:38 < GingerDog> i'm not sure i like the pfa prefix though 21:38 < lenix> $_columns is for reference-purposes only, i don't know whether such a variable does exist in ZF 21:39 < lenix> i would use some kind of prefix, i don't care which one 21:39 < GingerDog> Most importantly, do not declare cascading operations both in the RDBMS and in your Zend_Db_Table class. 21:39 < lenix> but it proves to be good pratice if you want to include the code of/in some other software 21:39 < lenix> GingerDog: exactly 21:40 < lenix> i've got cascading-stuff inside my innodb already, that's why i commented it out 21:40 < GingerDog> can you mail the code, or a url of it, to the -devel mailing list 21:41 < lenix> GingerDog: i intended to add some validation-routines and an usage-example first.. 21:41 < lenix> but if you think publishing it in such an early state of course i can 21:42 < lenix> .. an early state make sense, of course .. 21:43 < lenix> anyway, i will call it a day now and go play some foosball :) 21:43 < lenix> ttyl 21:43 < GingerDog> k 21:44 < GingerDog> if you're going to imrpove on it then keep at it 21:44 < GingerDog> but it needs "publishing" sooner rather than later 21:50 < lenix> if you think it is enough for a first step already feel free to copy/paste our conversation to the list -- David Goodwin [ david at codepoets dot co dot uk ] [ http://www.codepoets.co.uk ] |