Enter cfturbine !
I have been working on a rapid prototyping engine that will generate standardized and predictable code for you. It generates C.R.U.D. and manages all FK relations (provided you define tables correctly).
I will add some screencasts and videos soon !
Meanwhile take 'er out for a spin....(no pun intended :D)