[symfony-users] Re: Smart migrations generator in Symfony + Doctrine

2007-11-26 Thread Wicked

Guys, sorry for long silence. I had no time to study chainsaw, I had
to chop wood :)

On 23 нояб, 02:52, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote:
> i prefer small teams and there i prefer a commit often approach for
> things that people work on together to keep people in the loop. when
> people work on something on their own, then its not so ueber critical
> that there is a migration anyways, so in that case i am also not so
> concerned.

Unfortunately this approach means that you won't keep zero-knowledge
revisions: any other developer will have to know that this revision is
actually not for checking out. This works ok for branches, but not for
trunk I think.

>
> > 3) it should be handy and maximally automatic. What you're saying
> > about - to make backup files - seems messy to me. Unfortunately I must
> > admit I would use `schema-diff schema.yml .svn/text-base/
> > schema.yml.svn-base` instead of your way. As I would say, it's the
> > least of evils :) Probably some script would do backing up, but again,
> > it should follow the requirement #1, so as I see something like svn
> > keyword $id: $ will be a must some way.
>
> well if it makes you happier you could use svn:externals to point to
> the earlier revision of the file (not sure if that is actually legit
> in svn).

It's not a way either. At least because you can't create an external
pointing to a single file. And this is not less maintenance nightmare
than just backing up.
--~--~-~--~~~---~--~~
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] French characters cause ? characters [solved]

2007-11-26 Thread Jonotron

Solved it.  It actually wasn't anything to do with Symfony or MySQL or
PHP... but my Ajax calls using Dojo that were the problem.  They
weren't encoded UTF-8.

Woops.

On Nov 26, 12:17 pm, "Simon Roby" <[EMAIL PROTECTED]> wrote:
> This is indeed weird. I'd recommend you check the source of one of
> your generated pages from a browser and make sure that the charset is
> correctly defined, it should look like this:
> 
>
> And make sure you set encoding: utf8 in your databases.yml. It's
> really essential or else your pages will use a different charset than
> your MySQL connection.
>
> And if you really can't work it out, you should probably just change
> everything to iso8859-1 and see how it works out (but you can keep
> your tables as UTF-8, because MySQL performs on-the-fly conversion
> between the client connection and the tables).
>
> On 11/26/07, Jonotron <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I've built a web app for our teachers (Canada), some of them need to
> > input French characters.
>
> > When they try to input accent characters (like in Fran�ias) the french
> > characters get replaced with a funny ? symbol in the database (MySQL
> > 5.0).
>
> > After looking through the group and forum I've tried the following (in
> > this order):
> >  * update my_table set my_column = 'Fran�ias' where id = 123;  This
> > works and the french characters are put in correctly and are retrieved
> > correctly so I don't think it's the database.
> >  * altered the table and column to UTF8 (from western-european); this
> > seems to make no difference
> >  * set charset: utf-8 in my settings.yml file; this seems to make no
> > difference
> >  * set encoding: utf8 in my databases.yml file; this causes the french
> > character and any character after it to be truncated from the form
> > insert.  Also if I update a record manually using a SQL query the data
> > returned looks strange Fran�ias is displayed as Fran�ias - this
> > behaviour makes me think it is a charset issue.
>
> > I have no idea what to do about this, but it is becoming a concern of
> > my users.
>
> > Any help would be appreciated.
>
> --
> - SR
--~--~-~--~~~---~--~~
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: sfLucenePlugin: Class 'myUser' not found

2007-11-26 Thread forkmantis

I checked out the project I am having trouble with onto a new
machine.  On the new machine, I was able to execute the lucene-init
task successfully.  On the original machine, I deleted the entire
project and did a fresh checkout from svn, and am still not able to
execute the task.

I did notice that on the second machine under the cache//search/
config directory I had a config_autoload.yml.php file, but on the
original machine this file was missing.  So it appears for some reason
that the config_autoload.yml file is not being generated on one server
while it is on the other.  I don't see anything interesting in the
_search.log file to indicate what the problem may be.

On Nov 26, 10:03 am, forkmantis <[EMAIL PROTECTED]> wrote:
> Thanks for the response, Carl.
>
> I have just checked out -r6162 of sfLucenePlugin into my project,
> cleared cache, and looked at my factories.yml for the application in
> question.  The commented defaults have not been altered:
>
> #  user:
> #class: myUser
>
> I still get this error when running "symfony lucene-init ":
>
> PHP Fatal error:  Class 'myUser' not found in /lib/symfony/user/
> sfUser.class.php on line 107
>
> I'm not totally sure how to troubleshoot from here.
>
> Carl Vondrick wrote:
> > On Friday, November 23, 2007, forkmantis wrote:
> > > PHP Fatal error: �Class 'myUser' not found in //lib/symfony/user/
> > > sfUser.class.php on line 107
>
> > Hi,
> > This issue is not related to sfLucene.  Try clearing your cache and checking
> > your configuration factories for the user.
>
> > Carl
--~--~-~--~~~---~--~~
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: French characters cause ? characters

2007-11-26 Thread Simon Roby
This is indeed weird. I'd recommend you check the source of one of
your generated pages from a browser and make sure that the charset is
correctly defined, it should look like this:


And make sure you set encoding: utf8 in your databases.yml. It's
really essential or else your pages will use a different charset than
your MySQL connection.

And if you really can't work it out, you should probably just change
everything to iso8859-1 and see how it works out (but you can keep
your tables as UTF-8, because MySQL performs on-the-fly conversion
between the client connection and the tables).

On 11/26/07, Jonotron <[EMAIL PROTECTED]> wrote:
>
> I've built a web app for our teachers (Canada), some of them need to
> input French characters.
>
> When they try to input accent characters (like in Fran�ias) the french
> characters get replaced with a funny ? symbol in the database (MySQL
> 5.0).
>
> After looking through the group and forum I've tried the following (in
> this order):
>  * update my_table set my_column = 'Fran�ias' where id = 123;  This
> works and the french characters are put in correctly and are retrieved
> correctly so I don't think it's the database.
>  * altered the table and column to UTF8 (from western-european); this
> seems to make no difference
>  * set charset: utf-8 in my settings.yml file; this seems to make no
> difference
>  * set encoding: utf8 in my databases.yml file; this causes the french
> character and any character after it to be truncated from the form
> insert.  Also if I update a record manually using a SQL query the data
> returned looks strange Fran�ias is displayed as Françias - this
> behaviour makes me think it is a charset issue.
>
> I have no idea what to do about this, but it is becoming a concern of
> my users.
>
> Any help would be appreciated.
>
> >
>


-- 
- SR

--~--~-~--~~~---~--~~
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] French characters cause ? characters

2007-11-26 Thread Jonotron

I've built a web app for our teachers (Canada), some of them need to
input French characters.

When they try to input accent characters (like in Françias) the french
characters get replaced with a funny ? symbol in the database (MySQL
5.0).

After looking through the group and forum I've tried the following (in
this order):
 * update my_table set my_column = 'Françias' where id = 123;  This
works and the french characters are put in correctly and are retrieved
correctly so I don't think it's the database.
 * altered the table and column to UTF8 (from western-european); this
seems to make no difference
 * set charset: utf-8 in my settings.yml file; this seems to make no
difference
 * set encoding: utf8 in my databases.yml file; this causes the french
character and any character after it to be truncated from the form
insert.  Also if I update a record manually using a SQL query the data
returned looks strange Françias is displayed as Françias - this
behaviour makes me think it is a charset issue.

I have no idea what to do about this, but it is becoming a concern of
my users.

Any help would be appreciated.

--~--~-~--~~~---~--~~
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: Cannot login on ie6/7 with sfGuardPlugin

2007-11-26 Thread carlo

Ok...problem solved. Internet Explorer doesn't accept underscores in
the domain name, I've found the solution in this post:

http://www.symfony-project.org/forum/index.php/m/29583/?srch=session+explorer#msg_29583

On 26 Nov, 17:35, carlo <[EMAIL PROTECTED]> wrote:
> At every request symfony create a new session id for IE loosing
> previous session data like (authenticated = 1).
> The problem occur when sfGuardAuth make a redirect after signin
> action.
> I've tested it in an empty project with only sfGuardPlugin 1.1.13 and
> Symfony 1.0.8.
>
> Everything is ok with FF 2, Opera 9 and Safari 2.
--~--~-~--~~~---~--~~
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: Cannot login on ie6/7 with sfGuardPlugin

2007-11-26 Thread Jon Busby

I had a similar problem with IE7 and a client.

in the end assigning them a new user fixed it (we put it down to autocomplete)

Jon

-Original Message-
From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
carlo
Sent: 26 November 2007 16:36
To: symfony users
Subject: [symfony-users] Cannot login on ie6/7 with sfGuardPlugin


At every request symfony create a new session id for IE loosing
previous session data like (authenticated = 1).
The problem occur when sfGuardAuth make a redirect after signin
action.
I've tested it in an empty project with only sfGuardPlugin 1.1.13 and
Symfony 1.0.8.

Everything is ok with FF 2, Opera 9 and Safari 2.




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--~--~-~--~~~---~--~~
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: Cannot login on ie6/7 with sfGuardPlugin

2007-11-26 Thread carlo

I've found another post with the same problem...without replies.

http://groups.google.it/group/symfony-users/browse_thread/thread/9b73deeb14c1caea/4bb718503c9e5037?hl=it&lnk=gst&q=login+ie6#4bb718503c9e5037

--~--~-~--~~~---~--~~
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] Cannot login on ie6/7 with sfGuardPlugin

2007-11-26 Thread carlo

At every request symfony create a new session id for IE loosing
previous session data like (authenticated = 1).
The problem occur when sfGuardAuth make a redirect after signin
action.
I've tested it in an empty project with only sfGuardPlugin 1.1.13 and
Symfony 1.0.8.

Everything is ok with FF 2, Opera 9 and Safari 2.


--~--~-~--~~~---~--~~
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: render page continue processing

2007-11-26 Thread Mat
That is right, scary isn't it. We are just optimising it all now, sure does
make you pay attention.

 

Mat

 

From: Bayarsaikhan [Singleton LLC] [mailto:[EMAIL PROTECTED] 
Sent: 26 November 2007 02:40
To: symfony-users@googlegroups.com
Subject: [symfony-users] Re: render page continue processing

 

hitting 1000 api calls from a single page view ...!?

On 11/25/07, Mat <[EMAIL PROTECTED]> wrote: 


Thanks Dustin,

We have looked into it, and to be honest it makes total sense to go for a 
separate table/ cron script, especially as this could be going multi-server
shortly. I'm busy coding it up now, thanks for the advice its really
appreciated :)

Mat

-Original Message-
From: Dustin Whittle [mailto:[EMAIL PROTECTED]
Sent: 25 November 2007 15:30
To: symfony-users@googlegroups.com ; Mat
Subject: [symfony-users] Re: render page continue processing


Mat,

I would move the api calls to a cron script managed by a notifications table
in the db. It is possible to process things after the response is rendered 
(or rather content is flushed), but in this case it seems like a bad idea.

- Dustin


On 11/25/07 9:52 AM, "Mat" <[EMAIL PROTECTED]> wrote:

>
> Thanks Dustin,
>
> We about to swap onto curl_multi any way, but we could be hitting 1000 api
> calls from a single page view, without too many problems. We could convert
> it all to cron but it's a fair amount of work. 
>
> Essentially we have a news module, and when a news item is created, we go
> back to the main view page and send out notifications to all the
registered
> users, via api calls. Regrettably its one call per user, nothing we can do

> about the api
>
> No reason why we couldn't add them all to a db and call a cron job to
> process them all, I was just hoping symfony would have a method to
continue
> processing after the render has occurred. 
>
> If you have any other suggestions, I'd be keen to hear them
>
> Mat
>
> -Original Message-
> From: Dustin Whittle [mailto: 
[EMAIL PROTECTED]
> Sent: 25 November 2007 14:45
> To: symfony-users@googlegroups.com; Mat
> Subject: [symfony-users] Re: render page continue processing 
>
>
> Mat,
>
> You can use curl_multi to parallelize the api calls and reduce latency.
> Also, if these api calls are not needed as part of the response, then
create
> a cron task. 
>
> - Dustin
>
>
> On 11/25/07 9:37 AM, "Mat" <[EMAIL PROTECTED]> wrote:
>
>>
>> Is there anyway to send the page to the browser and continue processing 
> the
>> script in symfony?
>>
>> We essentially have a few api calls which slow down our page views,
> however
>> the responses from the api calls in no way effect the page being 
> displayed,
>> we we would like to optimize this.
>>
>> Thanks in advance.
>>
>> Mat
>>
>>
>>>
>
>
>
>
>
>
> >











-- 
Bayarsaikhan VOLODYA
Singleton LLC - www.singleton.mn
Cell: +976 99779919


--~--~-~--~~~---~--~~
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: sfLucenePlugin: Class 'myUser' not found

2007-11-26 Thread forkmantis

Thanks for the response, Carl.

I have just checked out -r6162 of sfLucenePlugin into my project,
cleared cache, and looked at my factories.yml for the application in
question.  The commented defaults have not been altered:

#  user:
#class: myUser

I still get this error when running "symfony lucene-init ":

PHP Fatal error:  Class 'myUser' not found in /lib/symfony/user/
sfUser.class.php on line 107

I'm not totally sure how to troubleshoot from here.

Carl Vondrick wrote:
> On Friday, November 23, 2007, forkmantis wrote:
> > PHP Fatal error: �Class 'myUser' not found in //lib/symfony/user/
> > sfUser.class.php on line 107
>
> Hi,
> This issue is not related to sfLucene.  Try clearing your cache and checking
> your configuration factories for the user.
>
> Carl
--~--~-~--~~~---~--~~
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: Askeet source?

2007-11-26 Thread Francois Zaninotto

Did you try:

http://trac.askeet.com/

François

2007/11/24, Matthias N. <[EMAIL PROTECTED]>:
>
> On 24 Nov., 12:21, "Ian P. Christian" <[EMAIL PROTECTED]> wrote:
> > Piers Warmers wrote:
> >
> > > Ooops,
> >
> > > Sorry about that...
> >
> > > Maybe the recent domain changes have effected that?
> >
> > http://www.symfony-project.org/downloads/askeet_release_1_0.tgz
>
> This seems to be a very old version? What symfony version do I need
> for this?
> Is there a SVN somewhere with some current updates?
> Seems that it is not compatible to symfony 1.0 !?
> For example there is no apps dir in the project..
>
> Regards,
> Matthias
>
>
> >
>
>

--~--~-~--~~~---~--~~
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] FloodControlPlugin

2007-11-26 Thread Lee Bolding

What is the state of this plugin?

I've issued a symfony plugin-install
http://plugins.symfony-project.com/sfPropelFloodControlBehaviorPlugin as per
the docs in the Wiki and I just get a 404 error...


--~--~-~--~~~---~--~~
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] Help with Ajax and select tags

2007-11-26 Thread [EMAIL PROTECTED]

Hi all,
my problem is occurring with creating a dropdown box that when
selected, AJAX will place another dropdown box below it filled with
choices according to the value chosen in box 1.


I use the following code to generate the first dropdown box:

 remote_function( array(

'update' => 'classSelection',
'url' => 'departments/GetCourses',
'with' => "'id=' + this.options[this.selectedindex].value",
'loading' => "Element.show('indicator')",
'complete' => "Element.hide('indicator')"
  ))
 ));
?>






executeGetCourses in action.class.php, which will take the value from
Box 1 and retrieve only the values from the CRN column of my 3 column
table that have the same Name column value as the id chosen:

public function executeGetCourses()
{
$CRNcrit = new Criteria();

$CRNcrit -> clearSelectColumns();
$CRNcrit -> addSelectColumn( OfferedPeer::CRN );

$CRNcrit->add( OfferedPeer::Name, $this-
>getRequestParameter('id') );

$this->crns = OfferedPeer::doSelect( $deptCrns );
}


and this is getCoursesSuccess.php:





Is there anything wrong with this code, because when i execute it in
my web page, nothing happens when i choose an option in box 1?

--~--~-~--~~~---~--~~
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] Autocomplete Tag Helper

2007-11-26 Thread David Hodgson

Hi,

Has anyone managed to get the 'loading' and 'complete' visual effects to 
work for the input_auto_complete_tag() helper?

I'm having no success at all.

Does anyone have a code snippet?

Thanks,
David



--~--~-~--~~~---~--~~
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: Best way to get data from DB

2007-11-26 Thread Jon Busby

Are you only attempting to retrieve on picture per product or all the pictures?

Propel should have automatically generated the $project->getPictures(); method, 
which will retrieve an array of picture objects based on the project in 
question.

For one of my projects we required "master thumbnails" - thus I defined a 
method in the product class called "getMasterThumb()", which would retrieve the 
master thumbnail, or if that didn't exist, the first image for that product, or 
if that didn't exist a holding image.  Thus in the template all I need to call 
is

image_tag($product->getMasterThumb()) etc and the rest is done for me.

Hope this helps

Jon


-Original Message-
From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Cacho
Sent: 26 November 2007 10:43
To: symfony users
Subject: [symfony-users] Best way to get data from DB



Hi

I've a table of products with some data of a product and as each
product can have more than one images associated I defined a table for
pictures with a FK with the product_id.

I'm now retireving and showing a list of 30 products per page without
the pictures. Which is the best way to retrieve pictures for each
product when I get the list ?

Should I do it in my template ?

Thanks in advance

C






--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--~--~-~--~~~---~--~~
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] Original template rendered after forward

2007-11-26 Thread gunnarlium

I have an action  (executeShow) which forwards to another action if
the results of a form is successfully stored in a database. For this,
I use $this->forward('form', 'answerRegistered');. This
executeAnswerRegistered-action is an empty method, but is used for
rendering an answerRegisteredSuccess-template.

This works fine, but the problem is that after all the HTML has been
rendered, the template for the action executeShow is also rendered,
resulting in a the following mark-up at the end of the file:






After the -tag, the code exits, becaouse it requires a non-present
variable. As mentioned, this code comes from the showSuccess-template.
Any ideas as to why this template is rendered? According to the debug-
panel, this view is never initialized.
--~--~-~--~~~---~--~~
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] Best way to get data from DB

2007-11-26 Thread Cacho


Hi

I've a table of products with some data of a product and as each
product can have more than one images associated I defined a table for
pictures with a FK with the product_id.

I'm now retireving and showing a list of 30 products per page without
the pictures. Which is the best way to retrieve pictures for each
product when I get the list ?

Should I do it in my template ?

Thanks in advance

C




--~--~-~--~~~---~--~~
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: Which ORM?

2007-11-26 Thread Greg Freeman

I have got propel 1.3 working, the generator still works just fine.

Thanks for your excellent 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: Which ORM?

2007-11-26 Thread Greg Freeman

Thanks for your reply.

I would prefer to go to propel 1.3 because that is what I am used too.
So the admin generator is all fine with it?
--~--~-~--~~~---~--~~
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] Doctrine schema not made corectly

2007-11-26 Thread Valentin Ceaprazaru

Hello

I want to build a schema for a website and i have a problem with
insert the sql.
I have doctrine 1.0 and sfGuardUser 1.0 installed.
This is the schema that i wrote so far and have problems with :

Category:
  tableName:  category
  columns:
id:
  primary:true
  autoincrement:  true
  type:   integer
  size:   10
name:
  unique: true
  type:   string
  size:   50
  notnull:true
created_at:
  type:   timestamp
  relations:
songs:
  class:  Song
  foreignAlias: categorys
  refClass:   SongCategory
  local:  category_id
  foreign:song_id

Song:
  tableName:  song
  columns:
id:
  notnull:true
  primary:true
  autoincrement:  true
  type:   integer
  size:   10
  name:   id
name:
  name:   name
  type:   string
  size:   100
  notnull:true
content:
  name:   content
  type:   string
  size:   2000
created_at:
  name:   created_at
  type:   timestamp
user_id:
  type:   integer
  size:   10
  relations:
sfGuardUser:
  foreignAlias: Songs
  local:  user_id

Comment:
  tableName:  comment
  columns:
song_id:
  type:   integer
  size:   10
content:
  name:   content
  type:   string
  size:   2000
user_id:
  type:   integer
  size:   10
created_at:
  name:   created_at
  type:   timestamp
  relations:
sfGuardUser:
  foreignAlias: comments
  local:  user_id
song:
  class:  Song
  local:  song_id

SongCategory:
  columns:
song_id:
  type:   integer
  size:   10
category_id:
  type:   integer
  size:   10
  relations:
song:
  class:  Song
  local:  song_id
category:
  class:  Category
  local:  category_id

The sfGuardUser is the default model class from sfGuardDoctrinePlugin.

The problem that i have comes from SONG and COMMENT tables, where i
use the reference to sfGuardUser.

Please tell me what i'm doing wrong, and also, if you have to share
some working examples of writing schema files for doctrine 1.0.

Thank you
Valentin Ceaprazaru
--~--~-~--~~~---~--~~
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: Which ORM?

2007-11-26 Thread notjosh

Doctrine's about as stable as Propel 1.3, I suppose. Neither are "1.0"
kind of release, but both are (or at least seem to be) suitable for
production sites if you're sensible.. I dunno though, I haven't used
Doctrine in a long time.

As for Propel 1.3, though, it's pretty stable. It's been used in a
fair few production sites already, without any massive ill-effect. It
needs an overhauled logging system, which is apparently the only major
thing preventing the official 1.3 release. The core code, though, is
pretty tidy.

If you're using symfony 1.0, there's the sfPropel13Plugin, which
should serve you well. Otherwise, if you're using the symfony 1.1
code, dwhittle's branch has the Propel 1.3 stuff tied in, so you're
free to try either way.

Disclosure: I wrote the Propel 1.3 plugin, and I'm generally biased
toward Propel - Doctrine might be much more stable, I dunno. I think,
though, that either will suit you fairly well.

On Nov 26, 2:52 pm, Greg Freeman <[EMAIL PROTECTED]> wrote:
> Is the Doctrine Plugin stable? Does it support the admin generator and
> command line tools?
>
> Is propel 1.3 due out anytime soon?
>
> Thanks
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---