[symfony-users] Re: Symfony 2 - anything like grails?
I have found several small problems with my approach below. I'm probably going to change it. A/ Indexes on Postgres don't seem to get picked up via intrpospection B/ The default value of NULL gets altered to NULL::var_type, which fails C/ Doctrine bypasses the default value for columns with default values drawn from a sequence. It gets the value from the sequence itself, then issues the INSERTS. It also DOES NOT PUT THE DEFAULT VALUE INTO THE SQL FOR THE TABLE CREATION. This means that any non Doctrine SQL can break. Probably C is not TOO much of an issue: I don't understand why it's that way though. Should be non coflicting to have the normal default value in the column defintion. Just have to remember to put nextval('column_name_seq'::regclass) in all SQL not part of the Doctrine package. The indexes though, that's a deal breaker. I haven't looked into the code, but I can't imagine that Doctrine is trying to do the Unique indexes in PHP, because it has the defintion of indexes in it's capability. Anyone else using a different database have problems with instropection of indexes, default values for sequences(or other default values)? I wrote previously: >I'm not sure if I wrote it to this mail list or not. > >I have found the easiest way to make a set of symfony model classes is: > >A/ Use a GUI ERD (Entity Relationship Diagram) editor. >B/ Output the SQL for the target database, (AND the PDF or Image of the >ERD) >C/ Make the database, a symfony project and its directory, and a >>databases.yml file >//in your $PROJECT directory do ... >E/ ./symfony doctrine:build-schema >F/ ./symfony doctrine:build-model >G/ ./symfony doctrine:build-forms> >H/ ./symfony doctrine:build-filters >I/ ./symfony cc J/ ./symfony doctrine:data-load >Dennis Gearon -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Symfony 2 - anything like grails?
Symfony doesn't operate with a DBMS directly. Perhaps you mean Doctrine? You can do that("specify certain settings for the database columns individually") easily there, too. On Jul 2, 7:00 am, "Bill P." wrote: > Hello, > > I have been using grails for a recent project as well as learning the > original symfony structure. > > Is Symfony 2 going to be a bit more like grails in the structure? I enjoy the > flexibility that symfony offers in the way I can specify certain settings for > the database columns individually, but grails seems to offer a much easier > setup in the way classes are constructed. > > Is there any sort of User manual or intro tutorial for Symfony 2 yet? > > Thanks. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Symfony 2 - anything like grails?
I'm not sure if I wrote it to this mail list or not. I have found the easiest way to make a set of symfony model classes is: A/ Use a GUI ERD (Entity Relationship Diagram) editor. B/ Output the SQL for the target database, (AND the PDF or Image of the ERD) C/ Make the database, a symfony project and its directory, and a databases.yml file //in your $PROJECT directory do ... E/ ./symfony doctrine:build-schema F/ ./symfony doctrine:build-model G/ ./symfony doctrine:build-forms H/ ./symfony doctrine:build-filters I/ ./symfony cc J/ ./symfony doctrine:data-load If it's all on the same machine, it's pretty fast. Plus you get the visual clarity of the graphic to refer to while you are figuring out how to make all the controller level / model level code work. I use Dezign for Databases. It has a slightly 1990's feel (due I believe to his continued use of the Borland or MFC libraries), but it's quite usable, very functional. It's written and very well maintained and expanded often by a single guy. He's been in business for ~10 years or more. It is unfortunately, ONLY available on windows. My one or 2 attempts to get it to work on Wine were unsuccessful, but I'm not that patient. Dennis Gearon Signature Warning EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en