[symfony-users] Re: How to pass PHP values to addJavascript() (or something else) ?
So if I need to get some variables in javascript from the app, you advice is to generate it into the DOM? Example: I need to detect which culture is set. Then i should generate div id=culture style=display:none;en/div into the DOM and then in the javascript read the value of the div by id? On 23 čvn, 14:57, Massimiliano Arione garak...@gmail.com wrote: On 22 Giu, 10:03, François franc...@robichet.com wrote: I'd like to pass values to my JS script when I call it. So I look the API for the addJavascript() method, herre is it : You shouldn't pass variables from php to javascript. Javascript should be always unobtrusive, so the only point of contact between your html (and php) and your javascript should be the DOM. Just insert your php variables somewhere in your page (e.g. in a hidden field of a form), then retrieve them with javascript (with jQuery, it's really simple) cheers Massimiliano -- 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: Doctrine fails on insert new value
Which type of database do you use? On 22 čvn, 15:27, Marxy oleha.ma...@gmail.com wrote: Hello! I got this error while added new value on standrd form generated by default. execute : SELECT r.sprint_id AS r__sprint_id, r.sprint_name AS r__sprint_name, r.sprint_start AS r__sprint_start, r.sprint_end AS r__sprint_end, r.sprint_summary AS r__sprint_summary, r.created AS r__created FROM rank_sprints r WHERE (r.sprint_id = ?) LIMIT 1 - () SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: I guess this happened 'cause of serial ype of primary key but I'm not sure. Nevertheless here is yml of the table: rank_sprints: columns: sprint_id: primary: true type: serial sprint_name: unique: true type: string(255) notnull: true sprint_start: type: date notnull: true sprint_end: type: date notnull: true sprint_summary: type: string created: default: 'now' type: timestamp notnull: true And forms were generated by default as php symfony doctrine:build --model php symfony doctrine:build --forms php symfony doctrine:build --sql php symfony doctrine:insert-sql php symfony doctrine:generate-module --with-show --non-verbose- templates frontend sprins rank_sprints If any one could help me why It is happened please! -- 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 design issue
I think that events would be right way to go ( http://www.symfony-project.org/gentle-introduction/1_4/en/17-Extending-Symfony ) I would create myUser which extends of sfGuardSecurityUser or sfBasicSecurityUser or something like that. Then when credentials will be changed notify(), if user is logged - notify()... and so on Then you can do whathever you want with this event in any class which will be registered to this event. On 22 čvn, 00:02, William william...@gmail.com wrote: Hello all, Another engineer and I are having a bit of a debate on the correct way to handle how Symfony automatically regenerates the session id when authentication, and changing credentials. We have to make a modification to the database whenever a session is regenerated when a user is logged in. So my initial thought would be to extend the sfBasicSecurityUser class and have it dispatch a notification so another part of the system can pick it up whenever credentials are added/removed. The other engineer believes we should extend the session storage class and modify it directly, then pass this to the sfBasicSecurityUser. To my knowledge, the sfBaicSecurityUser class is meant to be able to accept any kind of sfStorage class, not specific the session storage class even though it's kind of assumed. He thinks we should extend whichever class we currently want to use, if it's session then extend that, if later down the road we want to use MySQL then modify the mySession class and tell it to extend MySQL instead. So instead of simply modifying what storage is sent to the sfBasicSecurityUser, you'd have to modify the mySession and change what it extends. I'm not looking to be right or wrong, I'm interested what others opinions are and if they have even a better option. -- 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: Doctrine schema: two realtionships between two tables
I would create an attribute in the GalleryPicture table preview { type: boolean } then I would create a method for retrieving this preview_image - getPreviewImage() in the Gallery model class .. this method wil call a method from GalleryPictureTable.class.php - findPreviewImage($galleryId) body of the method: $q = $this-createQuery('p') -leftJoin('g.Gallery g') -andWhere('g.id = ?', $galleryId) -andWhere('p.preview = ?', true); return $q-fetchOne(); On 20 čvn, 17:10, Johannes Trommer johannes.trom...@gmail.com wrote: Hi, I need a little help creating my schema. I am creating a gallery- module containing the two tables Gallery and GalleryPicture. First one stores the galleries with additional information, the second one stores the pictures. The tables are related over the gallery.id-field and the gallerypictures.gallery_id-field. Here you see the schema: Gallery: columns: name: { type: string(255), notnull: true } preview_image: { type: integer, default: NULL } GalleryPicture: columns: gallery_id: { type: integer } filename: { type: string(255), notnull: true } relations: Gallery: alias: Gallery foreignAlias: Pictures foreign: id local: gallery_id onDelete: CASCADE I want to define a preview image for every gallery. This image would be an image out of the GalleryPictures table. How can I declare this additional relationship? Thanks in advance! =) -- 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: backend module
Or you can disable it in generator.yml try this... list: object_actions: _edit: ~ batch_actions: {} actions: {} On 23 čvn, 08:30, slau susan@gmx.de wrote: Hi, for 1) seehttp://www.symfony-project.org/jobeet/1_4/Doctrine/en/12#chapter_12_t... you can copy out of your cache folder /cache/APP/ENV/modules/MODULENAME/templates/_list_actions.php to your module template folder and then remove the link for 2) then just change the filter in the corresponding class by replacing the widget $this-widgetSchema['user_id'] = new sfWidgetFormFilterInput(array('with_empty' = false)) Hope that helps Susan -- 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: Route does not add a parameter when its defined as a default one.
I don't get why in first example the Output: http://localhost/blog/page/2 If you want the output like this just define your route like blog: url: /blog/page/:page param: { module: blog, action: list, page: 1 } On 23 čvn, 13:55, Ivo Az. sep...@gmail.com wrote: These are just example routes, there are no routes with the same name. Why should order of route matter when I use it's name in the url helper (e.g. link_for(5 '@blog?page=5'))? For Route 3 this should outputhttp://localhost/blog/page/5, but the output ishttp://localhost/blog. On Jun 23, 4:38 am, Eno symb...@gmail.com wrote: Remember the orderf of routes *does* matter, so you should have most specific route to least specific routes, e.g. using a wildcard will match all routes that start /blog so probably that route should be last. On Tue, 22 Jun 2010, Ivo Az. wrote: Here's examples: Link ?php echo link_to($page, '@blog?page='.$page) ? Route 1 blog: url: /blog/* param: { module: blog, action: list } Output:http://localhost/blog/page/2 Route 2 blog: url: /blog/:page param: { module: blog, action: list, page: 1 } Output:http://localhost/blog/2 Route 3 blog: url: /blog/* param: { module: blog, action: list, page: 1 } Output:http://localhost/blog Why in 3rd case the url does not contain the page parameter as in first example? -- 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: How to pass PHP values to addJavascript() (or something else) ?
That would be one way. On Jun 24, 9:05 am, Tom Ptacnik to...@tomor.cz wrote: So if I need to get some variables in javascript from the app, you advice is to generate it into the DOM? Example: I need to detect which culture is set. Then i should generate div id=culture style=display:none;en/div into the DOM and then in the javascript read the value of the div by id? On 23 čvn, 14:57, Massimiliano Arione garak...@gmail.com wrote: On 22 Giu, 10:03, François franc...@robichet.com wrote: I'd like to pass values to my JS script when I call it. So I look the API for the addJavascript() method, herre is it : You shouldn't pass variables from php to javascript. Javascript should be always unobtrusive, so the only point of contact between your html (and php) and your javascript should be the DOM. Just insert your php variables somewhere in your page (e.g. in a hidden field of a form), then retrieve them with javascript (with jQuery, it's really simple) cheers Massimiliano -- 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] sfOutputEscaperIteratorDecorator - getModelClass
Hi =) I have an $object that has the type sfOutputEscaperIteratorDecorator. It's always a Doctrine-Model. I want to get the Model-Name. Is there a better way than doing it this way: get_class($object-getRawValue()) ? 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
Re: [symfony-users] Day 1 - jobeet problem
On Tue, Jun 22, 2010 at 11:30 PM, Christian chri...@gmail.com wrote: Hi! my name is christian and i'm new with symfony framework. I found this step by step tutorial: http://www.symfony-project.org/jobeet/1_2/Propel/it/01 i have troubles during the apache configuration... this is my httpd.conf _ # Be sure to only have this line once in your #configuration NameVirtualHost 127.0.0.1:8080 # This is the configuration for your project Listen 127.0.0.1:8080 VirtualHost 127.0.0.1:8080 DocumentRoot /home/chris/public_html/jobeet/web DirectoryIndex index.php Directory /home/chris/public_html/jobeet/web AllowOverride All Allow from All /Directory Alias /sf /home/chris/public_html/jobeet/web/lib/vendor/symfony/data/ web/sf Directory /home/chris/public_html/jobeet/web/lib/vendor/symfony/ data/web/sf AllowOverride All Allow from All /Directory /VirtualHost ___ where public_html is my apcahe DocumentRoot in whitch i have a lot of directory with different site, but when i put this link in my browser: http://localhost:8080/index.php (as the tutorial say) i can't see anything...only a blank page... can you help me please? thanks Chris Try this: http://localhost:8080/web/index.php -- -husain- -- 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] automated response
Merci de votre message. Je suis présentement absent du bureau. Je serai de retour le 5 juillet 2010. L'accès à mes courriels pourrait être limité durant cette période. En cas d'urgence, veuillez contacter Tisha au 514 987-9992 #150 ou par courriel à ti...@twistimage.com. Cordialement, Saad Tazi - - - - - - - - - - - - - Thank you for your message. I am currently out of the office and will return on Monday July 5th. I will have limited access to my e-mail during this period. For urgent matters, please contact Tisha at 514 987-9992 #150 or email ti...@twistimage.com. Best regards, Saad Tazi | Senior Web Developer Twist Image | www.twistimage.com T - 514 987 9992 x.158 407, rue McGill, 2e étage, Montréal (Québec) H2Y 2G3 -- 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
Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 20 Messages in 16 Topics
Beste, Tot en met 27 juni ben ik niet aanwezig op kantoor. U kunt voor dringende zaken contact opnemen met Wout Withagen: w...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en internet applicaties Dunantstraat 1c | 5017 KC Tilburg | Nederland tel. +31 (0)13 5448761 | fax. +31 (0)13 5448762 i...@freshheads.com | www.freshheads.com -- 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] Error en campo frontend con etiquetas Html
Amigos buenos dias quisiera su colaboracion en un problemilla que tengo con un campo que lo introduzco con viñetas y al momento de visualizarlo en otra plantilla se me visualizan las etiquetas Html tal cual osea no se me interpretan los html gracias Alvaro Gonzalez -- 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: How to pass PHP values to addJavascript() (or something else) ?
On 24 Giu, 08:05, Tom Ptacnik to...@tomor.cz wrote: So if I need to get some variables in javascript from the app, you advice is to generate it into the DOM? Example: I need to detect which culture is set. Then i should generate div id=culture style=display:none;en/div into the DOM and then in the javascript read the value of the div by id? If you just need the culture, you should get it from html tag. (in the lang attribute) Of course, you should before set it in html tag, but it's trivial: just set it in layout.php cheers Massimiliano -- 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: Day 1 - jobeet problem
Just a suggestion, you should use a newer version of symfony (1.4) and instead of use Propel you should use Doctrine, that's the future of Symfony. On 22 jun, 10:30, Christian chri...@gmail.com wrote: Hi! my name is christian and i'm new with symfony framework. I found this step by step tutorial:http://www.symfony-project.org/jobeet/1_2/Propel/it/01 i have troubles during the apache configuration... this is my httpd.conf _ # Be sure to only have this line once in your #configuration NameVirtualHost 127.0.0.1:8080 # This is the configuration for your project Listen 127.0.0.1:8080 VirtualHost 127.0.0.1:8080 DocumentRoot /home/chris/public_html/jobeet/web DirectoryIndex index.php Directory /home/chris/public_html/jobeet/web AllowOverride All Allow from All /Directory Alias /sf /home/chris/public_html/jobeet/web/lib/vendor/symfony/data/ web/sf Directory /home/chris/public_html/jobeet/web/lib/vendor/symfony/ data/web/sf AllowOverride All Allow from All /Directory /VirtualHost ___ where public_html is my apcahe DocumentRoot in whitch i have a lot of directory with different site, but when i put this link in my browser:http://localhost:8080/index.php(as the tutorial say) i can't see anything...only a blank page... can you help me please? thanks Chris -- 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: Day 1 - jobeet problem
This is an example of what I have: #Attrition is the name of my porject. #Este solo debe aparecer una vez en toda la configuracion NameVirtualHost 127.0.0.1:80 VirtualHost 127.0.0.1:80 ServerName attrition.localhost DocumentRoot /home/pachinsv/www/attrition/web DirectoryIndex index.php Alias /sf /home/pachinsv/www/attrition/lib/vendor/symfony/data/web/sf Directory /home/pachinsv/www/attrition/web AllowOverride All Allow from All /Directory Directory /home/pachinsv/www/attrition/lib/vendor/symfony/data/web/ sf AllowOverride All Allow from All /Directory /VirtualHost -- 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] ahDoctrineEasyEmbeddedRelationsPlugin Problem
Hello everyone, I am creating a complex form using the ahDoctrineEasyEmbeddedRelationsPlugin to create forms containing many to many relations. The plugin seems to work fine when only using a tier 1 relation (Eg user belongs to usergroup and vica versa). But when I have a tier 2 or 3 relation (Eg A house has 4 floors and each floor has 3 rooms and each room has 5 pictures of furniture) the validation fails when editing the record, not when creating a new record. Some code: Scheme.yml: realestate: actAs: { Timestampable: ~ } columns: id: { type: integer(9), primary: true, autoincrement: true } addressStreet: { type: string(100), notnull: true, minlength: 2 } addressNr: { type: string(10), notnull: true } adressBus: { type: string(10) } relations: realestateFloors: type: many class: realestateFloors local: id foreign: realestate_id onDelete: CASCADE realestateRooms: columns: id: { type: integer(9), primary: true, autoincrement: true } lenght: { type: decimal, notnull: true } width: { type: decimal, notnull: true } height: { type: decimal, notnull: true } remarks: { type: string(2000) } floor_id: { type: integer(9) } type: { type: enum, notnull: true, values: [Living,Badkamer,Keuken,Slaapkamer,Garage,Eetkamer,Bureauruimte,Terras,Tuin] } relations: realestateRoomPictures: type: many class: realestateRoomPictures local: id foreign: realestate_room_id onDelete: CASCADE realestateRoomPictures: columns: id: { type: integer(9), primary: true, autoincrement: true } picture: { type: string(255) } angle: { type: enum, notnull: true, values: [RechtsBoven, LinksBoven, RechtsOnder, LinksOnder, Enkel] } remarks: { type: string(1000) } realestate_room_id: { type: integer(9) } realestateFloors: columns: id: { type: integer(9), primary: true, autoincrement: true } realestate_id: { type: integer(9) } floorNr: { type: integer(9), notnull: true } floorMap: { type: string(255) } relations: realestateRooms: type: many class: realestateRooms local: id foreign: floor_id onDelete: CASCADE RealestateForm.class.php: class realestateForm extends BaserealestateForm { public function configure() { parent::configure(); unset($this['created_at'], $this['updated_at']); //Embed One2Many relations 'realestateFloors' = array( 'considerNewFormEmptyFields'= array('floorNr'), 'noNewForm' = false, 'newFormLabel' = 'New Floor', 'displayEmptyRelations' = false, 'newFormAfterExistingRelations' = true, 'formFormatter' = null, 'multipleNewForms' = true, 'newFormsInitialCount' = 1, 'newFormsContainerForm' = null, // pass BaseForm object here or we will create ahNewRelationsContainerForm 'newRelationButtonLabel'= '+', 'newRelationAddByCloning' = true, 'newRelationUseJSFramework' = 'jQuery') )); } } realestateFloorsForm.class.php: class realestateFloorsForm extends BaserealestateFloorsForm { public function configure() { //hide the id field $this-widgetSchema['realestate_id'] = new sfWidgetFormInputHidden(); //Embed One2Many relations $this-embedRelations(array( 'realestateRooms' = array( 'considerNewFormEmptyFields'= array(), 'noNewForm' = false, 'newFormLabel' = 'New Room', 'displayEmptyRelations' = false, 'newFormAfterExistingRelations' = true, 'formFormatter' = null, 'multipleNewForms' = true, 'newFormsInitialCount' = 1, 'newFormsContainerForm' = null, // pass BaseForm object here or we will create ahNewRelationsContainerForm 'newRelationButtonLabel'= '+', 'newRelationAddByCloning' = true, 'newRelationUseJSFramework' = 'jQuery'))); } } realestateRoomsForm.class.php class realestateRoomsForm extends BaserealestateRoomsForm { public function configure() { $this-widgetSchema['floor_id'] = new sfWidgetFormInputHidden(); //Embed One2Many relations $this-embedRelations(array( 'realestateRoomPictures' = array( 'considerNewFormEmptyFields'= array(), 'noNewForm' = false, 'newFormLabel' = 'New Picture', 'displayEmptyRelations' = false, 'newFormAfterExistingRelations' = true, 'formFormatter' = null, 'multipleNewForms' = true, 'newFormsInitialCount' = 1, 'newFormsContainerForm' = null, // pass BaseForm object here or we will create ahNewRelationsContainerForm 'newRelationButtonLabel'= '+',
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin Problem
Oh man, oh man, the plugin developer here. :) Kind of an extreme example, don't you think? *hmm* Nested relations with my plugin are planned but it's an enormous amount of work. I'm not saying anything but your last sentence was not nice, you know? You can of course develop your own, I'm doing this in my free time (being 22 years old and still in school). I hope I didn't waste any of your money, right?! So, don't count on me developing this just for you. Yes, it is on my TODO list but as far as I can see, it will be a bit before this functionality is finished. Cheers, Daniel On 24.06.2010, at 19:01, Ilias Barthelemy wrote: Hello everyone, I am creating a complex form using the ahDoctrineEasyEmbeddedRelationsPlugin to create forms containing many to many relations. The plugin seems to work fine when only using a tier 1 relation (Eg user belongs to usergroup and vica versa). But when I have a tier 2 or 3 relation (Eg A house has 4 floors and each floor has 3 rooms and each room has 5 pictures of furniture) the validation fails when editing the record, not when creating a new record. Some code: Scheme.yml: realestate: actAs: { Timestampable: ~ } columns: id: { type: integer(9), primary: true, autoincrement: true } addressStreet: { type: string(100), notnull: true, minlength: 2 } addressNr: { type: string(10), notnull: true } adressBus: { type: string(10) } relations: realestateFloors: type: many class: realestateFloors local: id foreign: realestate_id onDelete: CASCADE realestateRooms: columns: id: { type: integer(9), primary: true, autoincrement: true } lenght: { type: decimal, notnull: true } width: { type: decimal, notnull: true } height: { type: decimal, notnull: true } remarks: { type: string(2000) } floor_id: { type: integer(9) } type: { type: enum, notnull: true, values: [Living,Badkamer,Keuken,Slaapkamer,Garage,Eetkamer,Bureauruimte,Terras,Tuin] } relations: realestateRoomPictures: type: many class: realestateRoomPictures local: id foreign: realestate_room_id onDelete: CASCADE realestateRoomPictures: columns: id: { type: integer(9), primary: true, autoincrement: true } picture: { type: string(255) } angle: { type: enum, notnull: true, values: [RechtsBoven, LinksBoven, RechtsOnder, LinksOnder, Enkel] } remarks: { type: string(1000) } realestate_room_id: { type: integer(9) } realestateFloors: columns: id: { type: integer(9), primary: true, autoincrement: true } realestate_id: { type: integer(9) } floorNr: { type: integer(9), notnull: true } floorMap: { type: string(255) } relations: realestateRooms: type: many class: realestateRooms local: id foreign: floor_id onDelete: CASCADE RealestateForm.class.php: class realestateForm extends BaserealestateForm { public function configure() { parent::configure(); unset($this['created_at'], $this['updated_at']); //Embed One2Many relations 'realestateFloors' = array( 'considerNewFormEmptyFields'= array('floorNr'), 'noNewForm' = false, 'newFormLabel' = 'New Floor', 'displayEmptyRelations' = false, 'newFormAfterExistingRelations' = true, 'formFormatter' = null, 'multipleNewForms' = true, 'newFormsInitialCount' = 1, 'newFormsContainerForm' = null, // pass BaseForm object here or we will create ahNewRelationsContainerForm 'newRelationButtonLabel'= '+', 'newRelationAddByCloning' = true, 'newRelationUseJSFramework' = 'jQuery') )); } } realestateFloorsForm.class.php: class realestateFloorsForm extends BaserealestateFloorsForm { public function configure() { //hide the id field $this-widgetSchema['realestate_id'] = new sfWidgetFormInputHidden(); //Embed One2Many relations $this-embedRelations(array( 'realestateRooms' = array( 'considerNewFormEmptyFields'= array(), 'noNewForm' = false, 'newFormLabel' = 'New Room', 'displayEmptyRelations' = false, 'newFormAfterExistingRelations' = true, 'formFormatter' = null, 'multipleNewForms' = true, 'newFormsInitialCount' = 1, 'newFormsContainerForm' = null, // pass BaseForm object here or we will create ahNewRelationsContainerForm 'newRelationButtonLabel'= '+', 'newRelationAddByCloning' = true, 'newRelationUseJSFramework' = 'jQuery'))); } } realestateRoomsForm.class.php class realestateRoomsForm extends BaserealestateRoomsForm { public function configure() { $this-widgetSchema['floor_id'] = new
[symfony-users] Age validation using date widget
Actually, two issues: 1) My date widget isn't saving the date in the database. I get all zeroes on the insert. If the date is left null in the form, validation catches it, so I'm not sure why it doesn't get passed to the database. Any ideas? 2) Is there a way to add validation to the year widget for purposed of minimum age? Or must I render each aspect of the date separately in order to add validation to just the date... -- 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: Doctrine fails on insert new value
PostgreSQL -- 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: Age validation using date widget
Can you show us how the widgets are set and configured in the form? Outside of adding a date widget and a date validator you shouldn't have to do anything. Daniel On Jun 24, 1:49 pm, metaphist paulef...@gmail.com wrote: Actually, two issues: 1) My date widget isn't saving the date in the database. I get all zeroes on the insert. If the date is left null in the form, validation catches it, so I'm not sure why it doesn't get passed to the database. Any ideas? 2) Is there a way to add validation to the year widget for purposed of minimum age? Or must I render each aspect of the date separately in order to add validation to just the date... -- 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