[symfony-users] Re: method_backned
Then it looks that the function getTotals(); is bad. Yet you can try to set $this-test manualy in the action and look if it's correctly passed to the template. If so, focus on the getTotals() function. On 2 čvn, 10:59, safa boubekri boubekri.s...@gmail.com wrote: i try it it's gives me white page -- 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] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved
Hold the phone, my custom validator was not returning $values. suddenly it is all very clear. Thanks everyone who spend any time looking at this thread. On Wed, Jun 2, 2010 at 7:46 PM, Michael Hodges mhodg...@gmail.com wrote: Can someone help me understand how the sfFormDoctrine handles the cleaned data of the subforms? Is there an analog to the taintedValues array for the cleaned values of the master and subforms, or are the cleaned values saved to disk as each form and subform is processed? I think it is the first case since all forms and subforms have to be validated before anything is saved. If it is the first case, I've not figured out what the array of cleaned values is called and where best for me to put debug statements. On Mon, May 31, 2010 at 4:50 PM, Michael Hodges mhodg...@gmail.comwrote: The tracing I did demonstrated that the save indeed invoked the collection form which in turn invoked each of the model forms. I haven't been been able to trace where the tainted values of the subforms don't get stored once cleaned so that they can be saved as part of a transaction. Can someone help me understand how the sfFormDoctrine handles the cleaned data of the subforms? Is there an analog to the taintedValues array for the cleaned values of the master and subforms, or are the cleaned values saved to disk as each form and subform is processed? I think it is the first case since all forms and subforms have to be validated before anything is saved. If it is the first case, I've not figured out what the array of cleaned values is called and where best for me to put debug statements. [I'm using debug statements because I've not yet figured out how to get xdebug (using NetBeans) to continue stepping me through source code once I've pressed the save button. I'll ask this in another thread if I can't eventually figure it out.] Thanks for any help with resolving the subform save problem. - Michael On Mon, May 31, 2010 at 3:00 PM, Daniel Lohse annismcken...@googlemail.com wrote: Last time I heard, embedded forms are saved when calling a form's save() method. This change was in the 1.3 1.4 release. Daniel Sent from my iPad On Jun 1, 2010, at 2:27 AM, ken marfillas...@gmail.com wrote: I would advise tracing through sfDoctrineForm::save() method. Embedded forms save is not actually fired on containing form save. So if you have many many relation or another embedded form inside an embedded form, they wont be persisted. On May 31, 1:28 pm, Michael Hodges mhodg...@gmail.com wrote: Hello Symfony fans, I'm hoping someone can point to the error in my ways. I am working with embedded forms and the problem is that the master record is saved to the database, but not the user date for the detail records. I have followed the 'more with symphony 1.4 en' example very carefully and have been very successful with all aspects of the project except getting the save to work. It's like a Toyota scenario where I have a great car, except for one fatal flaw. Hoping you can help. The schema involves a master record, Transaction Receipt (master form), and two detail records: PurchaseDetail (Purchases) and PaymentDetail (Payments), the embedded forms. For every receipt there must be at least one purchase and one payment detail. My validation rules for this work well thanks to the examples in the tutorial. The schema is as follows (I left a lot out except the essentials for readability): TransactionReceipt: connection: doctrine tableName: TransactionReceipt actAs: { Timestampable: } columns: receipt_id: { type: integer(4), primary: true, autoincrement: true } paid_amount: { type: 'decimal(5, 2)', notnull: true } paid_date: { type: timestamp(25), notnull: true } Purchases: { class: PurchaseDetail, local: receipt_id, foreign: receipt_id, type: many } Payments: { class: PaymentDetail, local: receipt_id, foreign: receipt_id, type: many } PurchaseDetail: connection: doctrine tableName: PurchaseDetail actAs: { Timestampable: } columns: purchase_id: { type: integer(4), primary: true, autoincrement: true} receipt_id: { type: integer(4) } fee_name: { type: string(45) } fee_description: { type: string(45) } fee_amount: { type: 'decimal(5, 2)' } quantity: { type: integer(4) } relations: TransactionReceipt: { owningSide: Yes, local: receipt_id, type: one, foreign: receipt_id, foreignType: many, foreignAlias: Purchases, onDelete: CASCADE, onUpdate: CASCADE } PaymentDetail: connection: doctrine tableName: PaymentDetail actAs: { Timestampable: } columns: payment_id: { type: integer(4), primary: true, autoincrement: true } receipt_id: { type: integer(4) } payment_type: { type: string(2) } payment_amount: { type: 'decimal(5, 2)' } relations:
[symfony-users] How to filter by ID in the admin generator
The question is simple: how do I SHOW the ID field in the filter area, when using the admin generator? I'm trying to include id in the display option, inside the filter section, but it is not appearing. I have no problem with the other fields. I'm using Symfony 1.4.5 -- 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: batch import
Hi, This is a common problem. Like Eno said, it's easier to split the import into small batches. In your task : protected function execute($arguments = array(), $options = array()) { // initialize the database connection $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', false); sfContext::createInstance($configuration); $conn = Doctrine::getTable('Address')-getConnection(); if ($options['offset'] == 0) { Doctrine::getTable('Address')-createQuery()-delete()- execute(); } // Note that I'm using the orm to access my data to import $importAddresses = Doctrine::getTable('NAdresses')-createQuery() -limit(200) -offset(200 * $options['offset']) -execute(); $conn-beginTransaction(); foreach ($importAddresses as $importAddress) { // import stuff … Then, run something like : for i in `seq 0 10` ; do php symfony import:task -- application=frontend --offset=$i; done Regards, Thibault. On Jun 2, 5:00 pm, f1gm3nt f1gm...@gmail.com wrote: I'm looking into doing batch imports with a symfony task. The issues I'm having are seg faults and running out of memory. Even after jacking the memory limit to 2gigs. Has anyone else ever done batch imports using a symfony task that can shed some light on how they did it? -f1g -- 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: recursive redirect :-/
Thanks, I solved it with the users session: // redirect to referrer if not in this action here if ($this-getUser()-getAttribute('in_search', false)) { $this-getUser()-setAttribute('in_search', false); $this-redirect('@homepage'); } else { $ref = $request-getReferer(); if (empty($ref)) { $this-redirect('@homepage'); } else { $this-getUser()-setAttribute('in_search', true); $this-redirect($ref); } } On 3 Jun., 05:57, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: But now there is a search-results page, too, that comes from the search-action, where the redirection is done. If the user starts a new search from here and is too fast he gets the flash-message again, but the redirect to the last page is recursively since he came from the same action as he's redirected to. In this case I want to redirect the user to @homepage, too. But I don't know, how to find out, if the referrer matches the current route. What Ive done in the past is generate the URL for the current page and store it in the session, so you can examine it in your action and take appropriate action. Referer is really not reliable so I donbt use it. -- -- 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 filter by ID in the admin generator
I think it's obvious, but to clarify, I'm talking about the generator.yml file. -- 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: recursive redirect :-/
You should store in the session the timestamp of the last request so you can decide when to do the redirect for the user. gabriel On Jun 3, 12:44 pm, comb sa...@gmx.net wrote: Thanks, I solved it with the users session: // redirect to referrer if not in this action here if ($this-getUser()-getAttribute('in_search', false)) { $this-getUser()-setAttribute('in_search', false); $this-redirect('@homepage');} else { $ref = $request-getReferer(); if (empty($ref)) { $this-redirect('@homepage'); } else { $this-getUser()-setAttribute('in_search', true); $this-redirect($ref); } } On 3 Jun., 05:57, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: But now there is a search-results page, too, that comes from the search-action, where the redirection is done. If the user starts a new search from here and is too fast he gets the flash-message again, but the redirect to the last page is recursively since he came from the same action as he's redirected to. In this case I want to redirect the user to @homepage, too. But I don't know, how to find out, if the referrer matches the current route. What Ive done in the past is generate the URL for the current page and store it in the session, so you can examine it in your action and take appropriate action. Referer is really not reliable so I donbt use it. -- -- 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: Class 'Swift_SmtpTransport' not found in task
I don't know how to load them... On 2 Jun, 20:13, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, [ISO-8859-1] Jo o Soares wrote: I'm trying to send a mail from a task, yet I get this error: Fatal error: Class 'Swift_SmtpTransport' not found in C:\symfony\lib \task\RelatoriosTask.class.php on line 157 How can I include this class in the task? Are you sure SwiftMailer classes are loaded? -- -- 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: recursive redirect :-/
yes, I already save the timestamp, but in this thread the topic only was the redirect-problem. That's solved with my last post! :-) Thanks everybody! On 3 Jun., 12:52, pghoratiu pghora...@gmail.com wrote: You should store in the session the timestamp of the last request so you can decide when to do the redirect for the user. gabriel On Jun 3, 12:44 pm, comb sa...@gmx.net wrote: Thanks, I solved it with the users session: // redirect to referrer if not in this action here if ($this-getUser()-getAttribute('in_search', false)) { $this-getUser()-setAttribute('in_search', false); $this-redirect('@homepage');} else { $ref = $request-getReferer(); if (empty($ref)) { $this-redirect('@homepage'); } else { $this-getUser()-setAttribute('in_search', true); $this-redirect($ref); } } On 3 Jun., 05:57, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: But now there is a search-results page, too, that comes from the search-action, where the redirection is done. If the user starts a new search from here and is too fast he gets the flash-message again, but the redirect to the last page is recursively since he came from the same action as he's redirected to. In this case I want to redirect the user to @homepage, too. But I don't know, how to find out, if the referrer matches the current route. What Ive done in the past is generate the URL for the current page and store it in the session, so you can examine it in your action and take appropriate action. Referer is really not reliable so I donbt use it. -- -- 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] Admin generator and i18n
I have read lots of questions about i18n, but I haven't found any about performance. I have a simple backend app listing the contents of an ads table. These ads have a category, that is translated in some languages (it's defined as i18n in the Doctrine schema). So, when I add a table_method in my generator.yml to include de Category table, it reduces the number of queries, but there are yet some of them referencing i18n translation tables. So, if I add the category Translation table to the query, it reduces even more the queries BUT it increases the processing time considerably. Why this time penalty? Just because of the translation table? And why isn't the filter using this method to avoid so many translation queries as well? I mean, if I want to filter by category, it is making one query per category to include the translation table. Why?? -- 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] Admin generator and i18n
I have read lots of questions about i18n, but I haven't found any about performance. I have a simple backend app listing the contents of an ads table. These ads have a category, that is translated in some languages (it's defined as i18n in the Doctrine schema). So, when I add a table_method in my generator.yml to include de Category table, it reduces the number of queries, but there are yet some of them referencing i18n translation tables. So, if I add the category Translation table to the query, it reduces even more the queries BUT it increases the processing time considerably. Why this time penalty? Just because of the translation table? -- 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] Get variables on index of admin generator
Hi everyone I'm using some Get variables in the index for filtering the result (index?filter_type=2) The problem is that when I want to order some column, this get variable disappears. I notice that when you order some column, it uses get variables (index? sort=created_atsort_type=asc), and then, when you click a link, this get variables disappear in the url, but the list still get ordered by this column. Someone can help how can I do this same thing that happens with the columns. 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: sfFacebookConnectPlugin - getCurrentFacebookUid() returns NULL
The feed task should not be used anymore since Facebook deprecated feeds. The good solution is now indeed stream_publich() Cheers, Fabrice Bernhard On Jun 1, 12:51 pm, Maxime Teneur maxime.ten...@lanetscouade.com wrote: Concerning feed streaming, you can have a look on a task implemented in the plugin: sfFacebookConnectPlugin/lib/task/facebookgeneratefeedTask.class.php It could be a good start, i guess However you can do your own stuff, and use directly the Facebook (old) API : sfFacebook::getFacebookApi()-stream_publish On 1 juin 2010, at 12:44, Raphael wrote: Hi there, I am trying to implement a simple Facebook connect on my website using sfFacebookConnectPlugin, Symfony 1.4 and Doctrine but I am not sure I am doing it right... Everything works fine up to the point where a guardUser is created and logged in after the user clicks the connect with facebook button but after that, the $sf_user-getCurrentFacebookUid() always return NULL (as well as sfFacebook::getFacebookClient()-get_loggedin_user()) the GuardUser created in the DB has a valid Facebook UID though... Am I missing something? Is it normal and should I use the FBuid stored in the db rather than get_loggedin_user()? Additional question: does the plugin provide a way to publish news feeds? I didn't find any documentation on this... 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 -- Maxime Teneur La Netscouade -- Études, Communication, Influence, Participation -- t: +33 (0)1 44 74 36 74 m: +33(0)6 73 34 47 49 8 passage Brulon, 75012 Paris maxime.ten...@lanetscouade.comwww.lanetscouade.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] sfWidgetFormInputFileEditable: where is the code that removes the file?
Hi, by default, when you replace a file using sfWidgetFormInputFileEditable, the old file is removed from your hard disk. Where is that code that removes the file?? -- Javi Ubuntu 8.04 - Symfony 1.3 -- 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] __tostring
On Wed, 2 Jun 2010, safa boubekri wrote: but i want to have npmprenom in the table of paiment: select*from paiment it give me id_person not nom prenom I think Alexandru already answered. -- -- 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: sfWidgetFormInputFileEditable: where is the code that removes the file?
Check your class inheritance tree, it's defined in one of your ORM's base classes, depending on what you use: Propel: symfony/lib/plugins/sfPropelPlugin/lib/form/ sfFormProppel.class.php Doctrine: symfony/lib/plugins/sfDoctrinePlugin/lib/form/ sfFormDoctrine.class.php Search for unlink(). gabriel On Jun 3, 7:31 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, by default, when you replace a file using sfWidgetFormInputFileEditable, the old file is removed from your hard disk. Where is that code that removes the file?? -- Javi Ubuntu 8.04 - Symfony 1.3 -- 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] Re: sfWidgetFormInputFileEditable: where is the code that removes the file?
On 06/03/2010 06:45 PM, pghoratiu wrote: symfony/lib/plugins/sfDoctrinePlugin/lib/form/ sfFormDoctrine.class.php Thanks -- Javi Ubuntu 8.04 - Symfony 1.3 -- 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] render multiple partials ajax
Hi, is there any way to render multiple partials with an ajax call from a controller? the problem that i am having is that i need to refresh after the ajax call, segments of html that are in differentes separated parts of the dom, so i can not create a partial with this elemets inside(because that will force me almost to create a partial with al the body inside XD) I think rendering multiple partials could solve may problem..but not sure if this is the right aproach.. Any idea? Cheers -- 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] Common interfaces for shipping, tax and payments
Hi All, We have a US ecommerce site at that we are looking to take into Canada. Since we will in all likelihood move to more countries, we want to refactor the payment, tax and shipping code to use common interface for each. So that when we move to each new country we have a common interface to program for. Has anyone done anything like this? I know there's the sfPaymentPlugins but what about for shipping and tax? Thanks in advance, Tom -- 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] render multiple partials ajax
I'm not completey understanding what you're trying to accomplish. When you say Ajax call from a controller, what exactly do you mean? It doesn't sound like you're talking about a typical ajax request from a browser. On Thursday, June 3, 2010, fRAnKEnSTEin shirkav...@gmail.com wrote: Hi, is there any way to render multiple partials with an ajax call from a controller? the problem that i am having is that i need to refresh after the ajax call, segments of html that are in differentes separated parts of the dom, so i can not create a partial with this elemets inside(because that will force me almost to create a partial with al the body inside XD) I think rendering multiple partials could solve may problem..but not sure if this is the right aproach.. Any idea? Cheers -- 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 -- 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] Common interfaces for shipping, tax and payments
Thanks, Richard, I'll take a look. Anyone else working on anything else? On Thu, Jun 3, 2010 at 3:15 PM, Richard D Shank deve...@zestic.com wrote: On 06/03/2010 11:18 AM, Tom Haskins-Vaughan wrote: Hi All, We have a US ecommerce site at that we are looking to take into Canada. Since we will in all likelihood move to more countries, we want to refactor the payment, tax and shipping code to use common interface for each. So that when we move to each new country we have a common interface to program for. Has anyone done anything like this? I know there's the sfPaymentPlugins but what about for shipping and tax? Thanks in advance, Tom I haven't looked at the code, but there is a sfsTaxPlugin and a sfsDeliveryPlugin listed in the project redmine of in the sfShop project. -- 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 -- 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] sfDoctrineGuardPlugin fails query upon doctrine:build --all
I’m in the midst of updating to symfony 1.4.1-stable; using sfDoctrineGuardPlugin 4.0.1-stable. When trying to do a doctrine:build –all, it fails on this error: SQLSTATE[HY000]: General error: 1005 Can't create table 'notetolife.#sql-2ba_9d' (errno: 150). Failing Query: ALTER TABLE sf_guard_forgot_password ADD CONSTRAINT sf_guard_forgot_password_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE. Failing Query: ALTER TABLE sf_guard_forgot_password ADD CONSTRAINT sf_guard_forgot_password_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE This seems to be something internal to the plugin. What can I do to fix it? Thanks in advance, James Wheaton -- 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: render multiple partials ajax
Hi there, OK here is an example, supose that i havethe next HTML: ... ... div id=days01/div ... ... !--A lot of html here-- ... ... div id=total$100/div ... ... a onclick=calculate()Calculate/a ... ... Now, when some user clicks over Calculate link the app ill make an ajax call to my controller's foo, this ajax call needs to render the total and day divs in my html. Noe as you see those divs are two separated from ech other so i can not just make a partial that contains: .. ... div id=days?php echo $amount?/div ... ... !--A lot of html here-- ... ... div id=total?php echo $days? /div ... ... is just a lot of html in that partial that i do not need to render via ajax... and i can not create a partial with just the 2 divs i need because they are in two different places totally different. Thats why i am asking is there is any form of rendering multiple partials from an action, so i can create one partial that contains(for example) the days div, another partial that contains the amount div and just render those. so my controller may look like public function foo() { $foo = 25; $foo2 = 300; return $this-renderPartial('myPartial1', array(days = $foo)); return $this-renderPartial('myPartial2', array(amount = $foo)); } Ay idea? Cheers On 3 jun, 12:37, Donald Tyler chekot...@gmail.com wrote: I'm not completey understanding what you're trying to accomplish. When you say Ajax call from a controller, what exactly do you mean? It doesn't sound like you're talking about a typical ajax request from a browser. On Thursday, June 3, 2010, fRAnKEnSTEin shirkav...@gmail.com wrote: Hi, is there any way to render multiple partials with an ajax call from a controller? the problem that i am having is that i need to refresh after the ajax call, segments of html that are in differentes separated parts of the dom, so i can not create a partial with this elemets inside(because that will force me almost to create a partial with al the body inside XD) I think rendering multiple partials could solve may problem..but not sure if this is the right aproach.. Any idea? Cheers -- 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 -- 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: render multiple partials ajax
Hi there, Thanks, rendering json like the actions ersponse is a very good idea. Cheers -- 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