[symfony-users] Can I do this with Doctrine ?

2008-09-04 Thread [EMAIL PROTECTED]

I have a scheme like this
Address:
  tableName: address
  columns:
id:
  type: integer(4)
  primary: true
  autoincrement: true
address: string(45)
zip: string(45)
city: string(45)
  relations:
Companies:
  class: Company
  refClass: CompanyAddress
  foreignAlias: Addresses


Company:
  tableName: company
  columns:
id:
  type: integer(4)
  primary: true
  autoincrement: true
name: string(254)
reg_number: string(11)
  relations:
Addresses:
  class: Address
  refClass: CompanyAddress
  foreignAlias: Companies

CompanyAddress:
  tableName: company_address
  columns:
company_id:
  type: integer(4)
  primary: true
address_id:
  type: integer(4)
  primary: true
apartment_number: string(45)

How can I set and retrieve apartment_number field form association
table CompanyAddress ? Is this posible with Doctrine. Thank you in
advance.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Autoloading problem with Propel 1.3

2008-09-04 Thread Yohan 'rouKs' G.

Hi,

I'm migrating from propel 1.2 to 1.3 (symfony1.1) and i've got some
problems with the autoloading...

Fatal error: require() [function.require]: Failed opening required
'lib/model/om/BaseMenuNodePeer.php' (include_path='.:/usr/share/php:/
usr/share/pear:/usr/share/php5/symfony11/lib:/home/yohan/src/plugins/
sfPropelPlugin/lib/vendor/:/home/yohan/src/plugins/sfPropelPlugin/lib/
vendor/') in /home/yohan/src/lib/model/om/
BaseMenuNodeNestedSetPeer.php on line 3

The include_path doesn't contains lib/model !

Has someone a solution ?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Autoloading problem with Propel 1.3

2008-09-04 Thread Yohan 'rouKs' G.

Yohan 'rouKs' G. wrote:
 Hi,

 I'm migrating from propel 1.2 to 1.3 (symfony1.1) and i've got some
 problems with the autoloading...

 Fatal error: require() [function.require]: Failed opening required
 'lib/model/om/BaseMenuNodePeer.php' (include_path='.:/usr/share/php:/
 usr/share/pear:/usr/share/php5/symfony11/lib:/home/yohan/src/plugins/
 sfPropelPlugin/lib/vendor/:/home/yohan/src/plugins/sfPropelPlugin/lib/
 vendor/') in /home/yohan/src/lib/model/om/
 BaseMenuNodeNestedSetPeer.php on line 3

 The include_path doesn't contains lib/model !

 Has someone a solution ?
 

   
I found why this don't work but no solution :/

This is because the addIncludes = false in propel.ini doesn't work with 
nested sets. If i manually remove includes, it works.

Someone have a solution or a patch ?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Embedded Forms for Related Objects

2008-09-04 Thread ProdigitalSon

Ok let me just say I feel REALLY dumb. I spent some time (not long,
but longer than I should have) trying to figure out an appropriate way
to do this (all the while not noticing the embedded profile fields in
the form for some reason). However when I began testing my method I
realized this functionality is already provided by default in the case
of sfGuard! I havent taken the time to review the logic yet but I plan
to, as this will often need to be implemented for other models. I
would suggest anyone else having this issue might want to start here
as well :-)

On Sep 2, 4:49 pm, ProdigitalSon [EMAIL PROTECTED] wrote:
 What Im trying to do is combo sfGuardUser and its related UserProfile
 into one form for account registration. The Form creation and
 embedding is all pretty straight foward. What Im having trouble with
 is how to go about setting the sf_guard_user_id. Does anyone have any
 tips on how theyve implemented this or something similar? Also,
 ideally Id like to have most of the setup logic contained in a form
 class (like UserRegistrationForm) instead of in the action.

 Thanks!

 -ant
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: plugin development idea

2008-09-04 Thread Florian

Hi,

totally sorry for ma late response :
I thought the google code Wiki was responding to your question.
http://code.google.com/p/sfownedbehavior/

The goal of this plugin is to automatize the verification of
permissions ( for example : a post is owned by ..., do I have the
right to edit/delete it ? )
Some plugins like sfAuthoredPlugin maybe approach from what I want to
do.


On 11 août, 19:14, Dmitry Nesteruk [EMAIL PROTECTED] wrote:
 can you describe this plugin? what is functionality this module provide?

 2008/8/11 Florian [EMAIL PROTECTED]



  Hi community,

  I rewrite my post in this group cause this one (

 http://groups.google.com/group/symfony-devs/browse_thread/thread/416b...
  )
  is maybe not the best place
  ---

  I just wanted to know what you think of this plugin (
 http://code.google.com/p/sfownedbehavior/) ?

  Do you think it can be useful / totally stupid / already done /
  easilly done / differently done ?

  I'm open to any comments / suggestions / help !!

  In fact, I am as interested in writing a plugin ( just to learn ) as I
  need an easy, cool ( =symfony'cally ) way to securize my actions in
  function of owner.

  Hope my English is good enough to be understood by all.

  Thanks,
  Florian
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Integrating FirePHP in Symfony Core

2008-09-04 Thread Reynier Perez Mira

First of all I'm not a ZF user I'm a Symfony user. Recently and reading on 
Internet Zend Co. release ZF 1.6 and it comes with some new features. One of 
them is really interesting and it's FirePHP Log Support. I'm asking if will be 
possible include this feature in the next Symfony 1.2 version. I take a look at 
FirePHP site[1] and some articles about ZF and FirePHP[2] and it's not 
complicated. I least this is what I'm think. What you believe? Fabien?

[1] http://www.firephp.org/Wiki/Libraries/FirePHPCore 
[2] http://www.christophdorn.com/Blog/2008/09/02/firephp-and-zend-framework-16/

Cheers and thanks in advance
Ing. Reynier Pérez Mira
Grupo de Soporte al Desarrollo - Dirección Técnica IP 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to allow periods (.) in tags/urls

2008-09-04 Thread Eno

On Sep 3, 8:34 am, gunnarlium [EMAIL PROTECTED] wrote:

 I have a url like /music/tags/mr.music. mr.music should be
 accessible from $requst-getParameter('tags').

 Instead, I get a 404 error. I assume this is because the rewriting
 rules by default makes any url containing periods bypass symfony, and
 tries to access the file mr.music in the music/tags directory (which
 does not exist).

 Can anyone help me with the right rewrite conditions for this kind of
 problem, or some other solid workaround?

 Current settings, for reference:
 IfModule mod_rewrite.c
   RewriteEngine On

   # uncomment the following line, if you are having trouble
   # getting no_script_name to work
   #RewriteBase /

   # we skip all files with .something
   RewriteCond %{REQUEST_URI} \..+$
   RewriteCond %{REQUEST_URI} !\.html$
   RewriteCond %{REQUEST_URI} !sitemap\.xml$
   RewriteRule .* - [L]

The stanza above, passes through an .something file (except .html or
sitemap.xml) through to Apache instead of the symfony controller
producing the 404 error you see.

I imagine you would have to rewrite that stanza and explicitly specify
which files you allow and let the rest fall through to the following
rules (where eventually it will be handed off to your controller).
This means for example, adding rewrite conditions
for .css, .js, .gif, .jpg, .swf files, etc etc.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] AW: [symfony-users] Integrating FirePHP in Symfony Core

2008-09-04 Thread Fabian Lange

Hi,
I have looked into this. I guess you were the one who made the FirePHP
comment in the blog. The main issue I see at the moment is that the debug
information is sent in the header. But yes I think that could be integrated.
However what do you think is the main benefit of using FirePHP? The Web
debug bar does very much the same thing.

Perhaps You could come up with a first patch proposal and submit it to trac

Best regards
.: Fabian

-Ursprüngliche Nachricht-
Von: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED]
Im Auftrag von Reynier Perez Mira
Gesendet: Donnerstag, 4. September 2008 16:57
An: symfony-users@googlegroups.com
Betreff: [symfony-users] Integrating FirePHP in Symfony Core


First of all I'm not a ZF user I'm a Symfony user. Recently and reading on
Internet Zend Co. release ZF 1.6 and it comes with some new features. One of
them is really interesting and it's FirePHP Log Support. I'm asking if will
be possible include this feature in the next Symfony 1.2 version. I take a
look at FirePHP site[1] and some articles about ZF and FirePHP[2] and it's
not complicated. I least this is what I'm think. What you believe? Fabien?

[1] http://www.firephp.org/Wiki/Libraries/FirePHPCore 
[2]
http://www.christophdorn.com/Blog/2008/09/02/firephp-and-zend-framework-16/

Cheers and thanks in advance
Ing. Reynier Pérez Mira
Grupo de Soporte al Desarrollo - Dirección Técnica IP 





--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Integrating FirePHP in Symfony Core

2008-09-04 Thread Eno

On Sep 4, 10:56 am, Reynier Perez Mira [EMAIL PROTECTED] wrote:

 First of all I'm not a ZF user I'm a Symfony user. Recently and reading on 
 Internet Zend Co. release ZF 1.6 and it comes with some new features. One of 
 them is really interesting and it's FirePHP Log Support. I'm asking if will 
 be possible include this feature in the next Symfony 1.2 version. I take a 
 look at FirePHP site[1] and some articles about ZF and FirePHP[2] and it's 
 not complicated. I least this is what I'm think. What you believe? Fabien?


Could it made as an optional plugin?


--


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: AW: [symfony-users] Integrating FirePHP in Symfony Core

2008-09-04 Thread Dustin Whittle

All,

+1 from me to integrate as a plugin for the new 1.2 debug toolbar. Our web
debug toolbar does the same thing, and works in all browsers.

- Dustin


On 9/4/08 10:26 AM, Fabian Lange [EMAIL PROTECTED] wrote:

 
 Hi,
 I have looked into this. I guess you were the one who made the FirePHP
 comment in the blog. The main issue I see at the moment is that the debug
 information is sent in the header. But yes I think that could be integrated.
 However what do you think is the main benefit of using FirePHP? The Web
 debug bar does very much the same thing.
 
 Perhaps You could come up with a first patch proposal and submit it to trac
 
 Best regards
 .: Fabian
 
 -Ursprüngliche Nachricht-
 Von: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED]
 Im Auftrag von Reynier Perez Mira
 Gesendet: Donnerstag, 4. September 2008 16:57
 An: symfony-users@googlegroups.com
 Betreff: [symfony-users] Integrating FirePHP in Symfony Core
 
 
 First of all I'm not a ZF user I'm a Symfony user. Recently and reading on
 Internet Zend Co. release ZF 1.6 and it comes with some new features. One of
 them is really interesting and it's FirePHP Log Support. I'm asking if will
 be possible include this feature in the next Symfony 1.2 version. I take a
 look at FirePHP site[1] and some articles about ZF and FirePHP[2] and it's
 not complicated. I least this is what I'm think. What you believe? Fabien?
 
 [1] http://www.firephp.org/Wiki/Libraries/FirePHPCore
 [2]
 http://www.christophdorn.com/Blog/2008/09/02/firephp-and-zend-framework-16/
 
 Cheers and thanks in advance
 Ing. Reynier Pérez Mira
 Grupo de Soporte al Desarrollo - Dirección Técnica IP
 
 
 
 
 
  



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfForms validation question

2008-09-04 Thread Nicolas CHARLOT

Hi,

In a single form, user has to select or create a new record.

The first field correspond to the choice (radio) :
- existing
- new

My issue is about validation: I need to apply the good schema  
depending on choice value :
- If user select existing, he just has to select a value in a select.
- If user select new, he has to fill many fields.

I'm running arround embedding 2 forms and rewriting the isValid()  
method like :
  public function isValid()
  {
if ($this-taintedValues['new'] == self::NEW)
{
  return $this-formNew-isValid();
}
else
{
  return $this-formExisting-isValid();
}
  }

It's working but I'm searching for a better practice.

Thanks for your advises.
--
Nicolas CHARLOT
http://www.isics.fr




--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfForms validation question

2008-09-04 Thread Nicolas CHARLOT

Hi,

In a single form, user has to select or create a new record.

The first field correspond to the choice (radio) :
- existing
- new

My issue is about validation: I need to apply the good schema  
depending on choice value :
- If user select existing, he just has to select a value in a select.
- If user select new, he has to fill many fields.

I'm running arround embedding 2 forms and rewriting the isValid()  
method like :
   public function isValid()
   {
 if ($this-taintedValues['new'] == self::NEW)
 {
   return $this-formNew-isValid();
 }
 else
 {
   return $this-formExisting-isValid();
 }
   }

It's working but I'm searching for a better practice.

Thanks for your advises.
--
Nicolas CHARLOT
http://www.isics.fr




--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Parse error in ProjectConfiguration.class.php

2008-09-04 Thread Jérôme

Hi,

When I try to launch symfony cc command, I get the following error :

Parse error: syntax error, unexpected T_STRING, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
ProjectConfiguration.class.php

This is my ProjectConfiguration.Class.php file :

?php

require_once '/usr/local/linkbynet/php-5.2.6/lib/php/symfony/autoload/
sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
  }
}

Thanksfor your help.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Integrating FirePHP in Symfony Core

2008-09-04 Thread red

Hi there
First I think there is already a solution as a plugin:

http://www.symfony-project.org/plugins/sfFirePHPLoggerPlugin

Second: The difference between the web-debug-bar and FirePHP is that
debug information of FirePHP is also available within ajax-calls and
makes it easier to debug the traffic behind the carpet...
Just my 2 cent
Greets
red

On 4 Sep., 19:26, Fabian Lange [EMAIL PROTECTED]
wrote:
 Hi,
 I have looked into this. I guess you were the one who made the FirePHP
 comment in the blog. The main issue I see at the moment is that the debug
 information is sent in the header. But yes I think that could be integrated.
 However what do you think is the main benefit of using FirePHP? The Web
 debug bar does very much the same thing.

 Perhaps You could come up with a first patch proposal and submit it to trac

 Best regards
 .: Fabian

 -Ursprüngliche Nachricht-
 Von: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED]
 Im Auftrag von Reynier Perez Mira
 Gesendet: Donnerstag, 4. September 2008 16:57
 An: symfony-users@googlegroups.com
 Betreff: [symfony-users] Integrating FirePHP in Symfony Core

 First of all I'm not a ZF user I'm a Symfony user. Recently and reading on
 Internet Zend Co. release ZF 1.6 and it comes with some new features. One of
 them is really interesting and it's FirePHP Log Support. I'm asking if will
 be possible include this feature in the next Symfony 1.2 version. I take a
 look at FirePHP site[1] and some articles about ZF and FirePHP[2] and it's
 not complicated. I least this is what I'm think. What you believe? Fabien?

 [1]http://www.firephp.org/Wiki/Libraries/FirePHPCore
 [2]http://www.christophdorn.com/Blog/2008/09/02/firephp-and-zend-framewo...

 Cheers and thanks in advance
 Ing. Reynier Pérez Mira
 Grupo de Soporte al Desarrollo - Dirección Técnica IP
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Load balancing solution for Symfony app

2008-09-04 Thread Eno

On Thu, 4 Sep 2008, Bruno Prieto Reis wrote:

 what persisting session state . How to do it?
 How can I ensure that every server that handles the request will use
 the same session data?

MySQLSessionStorage



-- 



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---