[symfony-users] Re: Make Symfony and C++ work together

2011-02-17 Thread Gabriel Petchesi
On Thursday, February 17, 2011 10:04:29 AM UTC+2, Sebastian wrote: Thank you for your reply Gabriel, is there any documentation on this? There was in a presentation by Dustin Whittle if I remember correctly. No official documentation, howto, as far as I can tell. Personally I think

[symfony-users] assigning a value to form widget problem please help

2011-02-17 Thread Helloise Smit
i have a form widget in _form.php echo $form['catcher_id']-renderLabel(); //the label echo $form['catcher_id']-renderError(); //the validator symfony created the base class: ?php /** * LpmService form base class. * abstract class BaseLpmServiceForm extends BaseFormPropel { public function

[symfony-users] Re: Netbeans with sudo root permission problem

2011-02-17 Thread ModaCalcio.com - e-reall ebay
Hi Gabriel and thanks for explanation Problem putting files on 664 is that they won't be handled if they are included. I am trying some galleries with Flex that uses XML for flashvars, and they are not streamed correctly, so I had to place that with 775 too. My worry is that some handle of file

Re: [symfony-users] Re: Netbeans with sudo root permission problem

2011-02-17 Thread Gareth McCumskey
As I mentioned before, the best and most secure setup is to have your files sitting in your home directory (where your user account has all the permissions necessary to edit) and setup virtual hosts on Apache instead. On Thu, Feb 17, 2011 at 10:45 AM, ModaCalcio.com - e-reall ebay

[symfony-users] How do you log errors in the model the correct way?

2011-02-17 Thread davidsonrob
Hi, As the complexity of my models has grown I have felt the need to log errors in the model to help me thoubleshoot The way I have been doing it is something like sfContext::getInstance()-getLogger()err('{artistImage} getImageThumbPath unexpected thumbnailType input param'); Which all works

[symfony-users] Symfony 2 or Symfony 1.4?

2011-02-17 Thread Daniel
I am not sure if this question has been asked before. I looked and didn't see anything. I'm starting a project and I'm thinking I should do it on Symfony 2 since the release is scheduled for March. What do you guys think? Any advice? -- If you want to report a vulnerability issue on symfony,

[symfony-users] symfony2 - access everything from Entity class

2011-02-17 Thread Lideln
Hi ! I am experimenting the PR6, but I could not find how to access things from Entity just as you would do from Controller ($this- get('database_connection') or $this- get('doctrine.orm.entity_manager') and so on). It would be nice to place all static database queries inside the Entities. And

[symfony-users] Re: Forms and validation

2011-02-17 Thread Lideln
Hi ! I fixed the issue by removing my lame ctor and passing the name parameter to the create() factory instead as advised. Thank you all ! On 16 fév, 10:51, Bernhard Schussek bschus...@gmail.com wrote: Oops, parentheses I mean. /** @validation:NotNull */ and /** @validation:NotNull() */

[symfony-users] Make Symfony and C++ work together

2011-02-17 Thread Sebastian
Hey folks, I have the following scenario: A web application implemented with symfony but other parts in the background that would need to use the same objects (model) implemented in C++. Example: A worker process that does jobs created by PHP async in C++. It would need to use the same model

[symfony-users] Re: Make Symfony and C++ work together

2011-02-17 Thread Sebastian
Thank you for your reply Gabriel, is there any documentation on this? Personally I think XML for this task is an unneccessary overhead, compared to exposing the C++ model via a php extension. Plus both sides can use the same accessors and functionality, what would be one of my main goals.

[symfony-users] Re: sf1.4.9 : schema.yml relations article and sfGuardUser

2011-02-17 Thread benM
Yes, of course, should be integer... Thank you, it works. On 16 fév, 19:02, Roman Gnatyuk fo...@hackers.net.ua wrote:     user_id: string(255) should be user_id: integer   relations:     sfGuardUser:       foreignType: one try:    relations:      sfGuardUser:        foreignType: one

Re: [symfony-users] assigning a value to form widget problem please help

2011-02-17 Thread Erkhembayar Gantulga
hi Helloise Smit . in you LpmServiceForm: as Doctrine orm: $this-widgetSchema['catcher_id'] = new sfWidgetFormDoctrineChoice(array( 'label' = 'Catcher', 'multiple' = false, 'model' = 'LpmCatcher'), array()); as Propel: $catcher_names = LpmCatcherPeer::getByAllNames(); ##

Re: [symfony-users] Symfony 2 or Symfony 1.4?

2011-02-17 Thread Gareth McCumskey
This has been asked before but basically what it boils down to is: - Do you have an application that will be complete and ready to go live only after March? - Will you be willing to make alterations (perhaps extensive alterations even) after Symfony 2 is released in March to your application? -

Re: [symfony-users] Multiple databases and data exchange

2011-02-17 Thread Gareth McCumskey
Your best bet for ensuring you have good database backups is to look at setting up replication with master/slave setup. This is done through mysql directly and not with the application. The only way to do it through the application is to overwrite the save() method within your propel model

[symfony-users] Serialise sfWidgetFormChoice

2011-02-17 Thread wickass
I am using symfony 1.4 in a project and i need to store multiple options in a single field . I am using sfWidgetFormChoice Set up loooks like this: $status = Doctrine::getTable('Profile')-getStatuses(); $this-widgetSchema['status'] = new sfWidgetFormChoice(array(

[symfony-users] Re: Netbeans with sudo root permission problem

2011-02-17 Thread wickass
I Had a similar issue long ago When I was working on ubuntu. From what I remeber I added my user to the www:data group whic solved most of my problems. On Feb 16, 5:31 pm, ereallstaff ereallst...@gmail.com wrote: Hi I have an annoying problem develoing application with netbeans I am on Ubuntu

Re: [symfony-users] symfony2 - access everything from Entity class

2011-02-17 Thread Christophe COEVOET
Le 16/02/2011 23:00, Lideln a écrit : Hi ! I am experimenting the PR6, but I could not find how to access things from Entity just as you would do from Controller ($this- get('database_connection') or $this- get('doctrine.orm.entity_manager') and so on). It would be nice to place all static

[symfony-users] Re: Social network with symfony ?

2011-02-17 Thread Massimiliano Arione
On Wednesday, February 16, 2011 5:59:13 PM UTC+1, coolmec33 wrote: I want to know the feasibility of a social network (profiles, walls, groups, friends ) with the symfony framework. http://www.symfony-project.org/plugins/sfSocialPlugin cheers Massimiliano Arione -- If you want to

Re: [symfony-users] Symfony 2 or Symfony 1.4?

2011-02-17 Thread Tac Tacelosky
I struggled with the same question for the last few weeks, and finally decided to stick with CodeIgniter for prototyping until Symfony2 is closer to release. The software itself is amazing, but the documentation is all over the place. Very few of the tutorials work with the latest snapshot,

Re: [symfony-users] assigning a value to form widget problem please help

2011-02-17 Thread Altansuh A
Symfony Oracle connection hiij vzsen v. Holboj vzsen chin Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS aldaa garaad bh yum On Thu, Feb 17, 2011 at 5:39 PM, Erkhembayar Gantulga erheme...@gmail.comwrote: hi Helloise Smit . in you LpmServiceForm: as

[symfony-users] Re: Make Symfony and C++ work together

2011-02-17 Thread Sebastian
You can wrap C++ classes in PHP extensions. When I get to that point I will share my findings about how it works with Symfony :) -- 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

[symfony-users] Re: How do you log errors in the model the correct way?

2011-02-17 Thread Damon Jones
Using sfContext has its problems, as you have seen. It couples your models and where you can create your own context in your own tasks, that doesn't solve the problem with standard tasks. How about using the event dispatcher? In your model: class Something { protected $dispatcher; public

[symfony-users] Doctrine findOneBy and leftJoin

2011-02-17 Thread benM
Hi all, I have a class named CorpUserRememberKeyTable by Doctrine which content is like : public static function getInstance() { return Doctrine_Core::getTable('CorpUserRememberKey'); } public function myFindOneByRememberKey($remember_key) { $q =

[symfony-users] Re: Serialise sfWidgetFormChoice

2011-02-17 Thread wickass
I solved my problem I had to use return unserialize( parent::_get('status') ); because base class uses magic method to return value and caused infinite loop by method calling itself or something like that ;) On Feb 17, 3:53 pm, wickass wick...@gmail.com wrote: I am using symfony 1.4 in a

[symfony-users] perl File::Tail php clone?

2011-02-17 Thread rafix
i need read and store in DB (mongoDB or MySQL) logs files, exists any php lib like perl File::Tail module? -- 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] Re: Serialise sfWidgetFormChoice

2011-02-17 Thread Damon Jones
In getStatus() you refer to $this-status (which is calling the getStatus() method, hence your infinite loop). You don't need to use parent::_get('status), just $this- _get('status') will work. Unlike Propel, Doctrine doesn't use parent::getXXX() and parent::setXXX() to override, it uses _get()

Re: [symfony-users] Odd Doctrine behavior in form processing

2011-02-17 Thread Yitzchak Schaffer
On 2011-02-15 14:40, Yitzchak Schaffer wrote: I am encountering unexpected behavior with form processing, symfony 1.4 with Doctrine. I have a table which has a many-to-many relationship to itself: This turned out to be a known issue:

[symfony-users] chekbox creating or not a line into a link table

2011-02-17 Thread l3ia-etu
Hello everyone, I have a link table: CommandeOperationTechniqueSupplement: columns: cot_id: { type: integer , notnull: true} ots_id: { type: integer , notnull: true} relations: CommandeOperationTechnique: { local: cot_id, onDelete: CASCADE } OperationTechniqueSupplement: { local: ots_id

[symfony-users] Re: How do you log errors in the model the correct way?

2011-02-17 Thread Leon van der Ree
We had this same issue and we have solved this by implementing a LogFactory. I would not inject the dispatcher in my model, For one, because you want to log, not dispatch And for two, because it is very cumbersome to provide the logger to all your classes (changing all constructors and

[symfony-users] Re: How to save form data into database ?

2011-02-17 Thread jdewit
You need to add your entity to the bind $form-bind($this-get('request'), $news); // If the form has been submitted and is valid... if ($form-isValid()) { $em = $this-getEm(); $em-persist($news); $em-flush(); return

[symfony-users] [Symfony2] - PHPUnit Form Error

2011-02-17 Thread jdewit
I'm getting the error: PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' Here's my code: ?php namespace Sensio\HelloBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class AccountControllerTest extends

[symfony-users] Throwing a 406 error

2011-02-17 Thread violyn
Hi, I manually check to see if i can provide the accept content the client wants: $header_array = $this-container-get('request')-getAcceptableContentTypes(); then i check if $header_array contains the content type i have. what i want to do is throw a 406 exception if $header_array does not