Re: [symfony-users] Re: @orm:PrePersist and another listeners don't work

2011-03-24 Thread Jonathan Wage
Hi, I just tested here and the pre/postPersist is fired when you insert a new entity. Remember that Pre/PostUpdate is fired when you update the entity and Pre/PostPersist is triggered when you insert a new entity. - Jon 2011/3/24 Otávio Augusto Rodrigues Fernandes > Hi all, > >I have put th

Re: [symfony-users] symfony 2 + mongodb

2011-03-23 Thread Jonathan Wage
Looks like you are configuring Entity, what do the classes look like in that folder? Are the mapped to the ODM? - Jon On Tue, Mar 22, 2011 at 10:43 PM, Diego Henrique Oliveira < diegoholiveira...@gmail.com> wrote: > I am trying to configure MongoDB to work in a different folder from the > defaul

Re: [symfony-users] @orm:PrePersist and another listeners don't work

2011-03-23 Thread Jonathan Wage
Are you sure the method is not invoked? - Jon On Wed, Mar 23, 2011 at 1:37 PM, Otávio wrote: > Hi all, > > I have an entity like this: > > /** > * Neton\PropositalBundle\Entity\Proposal > * > * @orm:Table(name="proposal") > * @orm:Entity(repositoryClass="Neton\PropositalBundle\Model > \Pro

Re: [symfony-users] [Symfony2 pr7] - doctrine:generate:repositories error

2011-03-10 Thread Jonathan Wage
Can we see your ORM mappings configuration? - Jon On Thu, Mar 10, 2011 at 2:38 AM, jdewit wrote: > I get the error. > > > [RuntimeException] > > Repository Application\MsmBundle\Entity\Repository\JobRepository and > bundle don't have a common namespace, generation failed because the target > d

Re: [symfony-users] [Doctrine 2 + MongoDB] Generating document classes

2011-03-10 Thread Jonathan Wage
Hi, You just need to define your mapping files as yaml or xml then generate:documents from them using the CLI. - Jon On Wed, Mar 9, 2011 at 10:27 AM, HiDDeN wrote: > Is there a way to define the collection configuration and then > generate the document classes through the command line? I mean >

Re: [symfony-users] Re: Bug using MongoDB?

2011-03-10 Thread Jonathan Wage
Hi, Can I see your configuration? - Jon On Wed, Mar 9, 2011 at 11:17 AM, HiDDeN wrote: > It seems this is occuring when using Memcache as the metadata cache. > > > On 9 mar, 11:43, HiDDeN wrote: > > I have just downloaded the PR7 version of Symfony2, and tried to > > create a schema for MongoD

Re: [symfony-users] Transitive Persistence

2011-03-04 Thread Jonathan Wage
Hi, Yes. It cascades to all references automatically in Doctrine1. In Doctrine2 each reference must have cascading specifically enabled. This is for performance reasons that it is off by default. - Jon On Mon, Feb 28, 2011 at 4:59 PM, keymaster wrote: > I've searched the Symfony/Doctrine docum

Re: [symfony-users] [Symfony 2] How to inject a Service into a Form

2011-03-03 Thread Jonathan Wage
Hi, Make your form class a service prototype and then you can inject anything you want and retrieve instances of the form from DIC. Essentially the DIC becomes your form factory. - Jon On Thu, Mar 3, 2011 at 9:48 PM, Jan Eichhorn wrote: > Hi, > > actually i want to add an "Dynamic" Choice Fiel

Re: [symfony-users] [Sf2] doctrine:schema:create

2011-03-03 Thread Jonathan Wage
The configuration for the latest version in git should look like the following: doctrine: dbal: dbname: dbname orm: auto_generate_proxy_classes: true mappings: MainBundle: ~ - Jon On Wed, Mar 2, 2011 at 5:54 PM, liuggio wrote: > I suggest to use the

Re: [symfony-users] Doctrine2, Date and Oracle

2010-12-03 Thread Jonathan Wage
Hi, I think the issue is you need to configure the oracle date format to be something that PHPs strtotime can parse. I think the documentation mentions something about this somewhere. Thanks, Jon On Fri, Dec 3, 2010 at 9:55 AM, Zuchuat Bertrand wrote: > Hi, > > I would like to use the definitio

Re: [symfony-users] Re: Doctrine2 & symfony 1.4

2010-08-30 Thread Jonathan Wage
Russ, is it possible to move the plugin to git? - Jon On Mon, Aug 30, 2010 at 1:32 AM, Maxim Oleinik wrote: > > Have you even tried to contribute to the original plugin first? > > It would be nice if the changes can be made in the original > sfDoctrine2Plugin instead of having 2 of them. > > Rig

Re: [symfony-users] Re: Doctrine2 & symfony 1.4

2010-08-29 Thread Jonathan Wage
It would be nice if the changes can be made in the original sfDoctrine2Plugin instead of having 2 of them. - Jon On Sun, Aug 29, 2010 at 12:35 PM, rooster (Russ) wrote: > Have you even tried to contribute to the original plugin first? > > On Aug 29, 6:16 pm, Maxim Oleinik wrote: > > Does anybod

Re: [symfony-users] Generate Document Classes for MongoDb

2010-08-24 Thread Jonathan Wage
Hmm, are you using the latest versions? - Jon On Mon, Aug 23, 2010 at 4:57 PM, Michael wrote: > I'm trying to move from MySQL to MongoDb, and start creating a test > class: > > > namespace Bundle\TestBundle\Document; > > /** > * User > * Represents a particular user. > * > * @Document(db="

Re: [symfony-users] Re: created_at gets deleted on edit

2010-08-24 Thread Jonathan Wage
Yes, you need to remove the entire field from the form, not just the widget. - Jon On Tue, Aug 24, 2010 at 1:22 AM, Christopher Schnell < christopher.schn...@mda.ch> wrote: > Hi, > > I did unset the widgets, but that wasn't enough. Francois helped me then on > the propel list. I simply forgot to

Re: [symfony-users] How to load a Doctrine 2 Custom Mapping

2010-08-24 Thread Jonathan Wage
Hi, It is the same issue as the other of your e-mails. It is not supported right now, we just need to improve what is allowed to be specified in the application configuration to create the DI container. - Jon On Mon, Aug 23, 2010 at 3:57 PM, Aaron DM wrote: > I am trying to create a custom map

Re: [symfony-users] [Symfony2] How to configure Doctrine\ORM\Configuration

2010-08-24 Thread Jonathan Wage
Hi, We need to allow you to specify these things from the config.yml/config.xml. Can you create a ticket to improve this? Thanks, Jon On Tue, Aug 24, 2010 at 12:58 PM, Aaron DM wrote: > How do I configure Doctrine\ORM\Configuration? > > Like, I want to add a new DQL function I made; and to reg

Re: [symfony-users] what difference between Doctrine_core and Doctrine objects ?

2010-08-16 Thread Jonathan Wage
In Doctrine 1.2 Doctrine was moved to Doctrine_Core and Doctrine extends Doctrine_Core for backwards compatability. - Jon On Mon, Aug 16, 2010 at 1:29 PM, RusAlex wrote: > When we need to use Doctrine_core::getTable() and when we can use only > Doctrine::getTable() methods? > > -- > If you want

Re: [symfony-users] Symfony 1.4/Doctrine 1.2: specifying initial autoincrement value in a schema yaml file

2010-07-25 Thread Jonathan Wage
Hi, Try using the command.pre_command event to execute the SQL before fixtures are loaded. http://www.symfony-project.org/reference/1_4/en/15-Events#chapter_15_sub_command_pre_command - Jon On Sun, Jul 25, 2010 at 7:33 PM, Michael Hodges wrote: > Hello all, > > Currently I manually set the aut

Re: [symfony-users] Re: upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-23 Thread Jonathan Wage
ng a tag in the svn repository .. named like the package 5.0.0? >> Then I can use the svn:externals and don't worry about some future >> changes which wouldn't be compatible with my app. >> >> On 22 čnc, 18:12, Jonathan Wage wrote: >> >> &g

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-22 Thread Jonathan Wage
We added the forgot password, register, etc. functionality. Everything else stayed the way it was. - Jon On Thu, Jul 22, 2010 at 3:40 AM, Sela Yair wrote: > what actually did you change in the 5.0.0 release? > > On 18 July 2010 19:37, fizyk wrote: >> >> Hello, >> I'm trying to upgrade sfDoctrin

Re: [symfony-users] Symfony now powering Startrek.com

2010-07-21 Thread Jonathan Wage
Nice work! I saw this on twitter. It looks great! - Jon On Wed, Jul 21, 2010 at 2:13 PM, Jesse wrote: > I would like to announce that Symfony is now under the hood of the > freshly re-launched startrek.com. Complete with a welcome letter from > Leonard Nimoy himself the new Startrek.com is runni

Re: [symfony-users] [Doctrine] [newbie question] I got "Class BaseFoo not found in c:\ ... models\Foo.php" when I'm using Foo class

2010-07-20 Thread Jonathan Wage
Are you using symfony? If not, make sure you are using conservative model autoloading. If you are in symfony your models can just go in the lib directory and symfony will autoload them. - Jon On Tue, Jul 20, 2010 at 6:28 AM, Csaba wrote: > Hello, > > (Sorry for writing here, I know there is a Do

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-19 Thread Jonathan Wage
Ok. Try now. You can upgrade to 4.0.3 for the remember me fix and 5.0.0 is trunk with the new functionality. Sorry about that! Thanks, Jon On Mon, Jul 19, 2010 at 9:43 AM, Jonathan Wage wrote: > Yes, it was a mistake. I need to release the 1.3 branch as 4.0.3 now > and I'll package t

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-19 Thread Jonathan Wage
Yes, it was a mistake. I need to release the 1.3 branch as 4.0.3 now and I'll package trunk as 5.0. - Jon 2010/7/19 Michał Piotrowski : > Hi, > > 2010/7/19 Jonathan Wage : >> Hi, >> >> Hmm, what other changes were there? > > It looks like a full trunk

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-19 Thread Jonathan Wage
Oh, I see the problem. One second I need to create another package. - Jon On Mon, Jul 19, 2010 at 9:38 AM, Jonathan Wage wrote: > Hi, > > Hmm, what other changes were there? I didn't intend to do this. > > - Jon > > On Sun, Jul 18, 2010 at 1:37 PM, fizyk wrote:

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-19 Thread Jonathan Wage
Hi, Hmm, what other changes were there? I didn't intend to do this. - Jon On Sun, Jul 18, 2010 at 1:37 PM, fizyk wrote: > Hello, > I'm trying to upgrade sfDoctrineGuardPlugin to the new version, and at > first found that surprised that although in changelog said there was > only change (fix) to

Re: [symfony-users] [symfony 2] conflict: annotation validation on a Doctrine Entity using annotation mapping

2010-07-15 Thread Jonathan Wage
Hi, It is a known issue and we're discussing a solution. Thanks for reporting it and the information. - Jon On Thu, Jul 15, 2010 at 5:37 PM, Tim Nagel wrote: > I've come across a similar problem, haven't had much time to try work it out > on Symfony's end, however I have proposed a change to D

Re: [symfony-users] Symfony 1.3 Issue with Doctrine_Table::createQuery and multiple databases

2010-07-06 Thread Jonathan Wage
Hi, I am working on the issue. Can you try and create a Doctrine test case that demonstrates the problem? So we can test patches against it. - Jon On Tue, Jul 6, 2010 at 10:04 AM, Olivier wrote: > Hello, > > We are using a Symfony/Doctrine setup with multiple databases... We've > ran into a fe

Re: [symfony-users] Admin generator, Symfony 2

2010-07-05 Thread Jonathan Wage
Hi, It has not been started yet. - Jon On Sat, Jul 3, 2010 at 10:40 AM, Juan Alberto V. wrote: > Hi!, does anyone know about the status of admin generator in Symfony 2 ? > > Thanks, > Juan V. > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfon

Re: [symfony-users] Re: Symfony2 Doctrine2 $this->container->getDatabaseConnection() throws 'undefined method'

2010-06-25 Thread Jonathan Wage
Hi, The documentation is wrong currently. The DoctrineController has a method getDatabaseConnection(): $conn = $this->getDatabaseConnection(); This is also right too if you go directly to the container: $conn = $this->container->getDatabaseConnectionService(); The DoctrineController

Re: [symfony-users] Symfony 1.4 Alias

2010-05-31 Thread Jonathan Wage
Put it in a web accessible folder under apache and open the url. - Jon On Mon, May 31, 2010 at 7:56 AM, RedQueen wrote: > On the main page of Symfony we can find a lot of guides. And it really > help but sometime it dont answer all questions. One of this question > is "What if I don't want any

Re: [symfony-users] Re: Possible Bug?

2010-05-27 Thread Jonathan Wage
It is a bug for sure. We'll take a look and see if we can come up with a workable patch. Thanks, Jon On Thu, May 27, 2010 at 6:52 PM, Ozzy wrote: > Anyone? This causes a problem in my site as there are users learned > it. That is why this is very urgent for me. > > On May 27, 7:50 pm, Ozzy wro

Re: [symfony-users] Doctrine documentation is gone??

2010-05-14 Thread Jonathan Wage
Hi, What URLs are you trying to access? The site URLs were restructured. I tried to route the old URLs but I may have missed some. - jon On Fri, May 14, 2010 at 6:53 PM, Sid Bachtiar wrote: > Hi, > > I can't seem to find Doctrine's documentation anymore. Anyone else > having the same problem? >

Re: [symfony-users] findBy order?

2010-04-29 Thread Jonathan Wage
Yes, you need to use createQuery() instead of findBy at that point. - Jon On Tue, Apr 27, 2010 at 10:10 AM, metaphist wrote: > Is there a way to pass an ORDER BY to the Doctrine findBy method? Or > do I have to create a custom query at that point? > > -- > If you want to report a vulnerability

Re: [symfony-users] Re: doSelect array result converted to ArrayDecorator in template

2010-04-22 Thread Jonathan Wage
and what you mean? I don't ever run queries in my templates. Do you? - Jon > On Apr 22, 5:31 pm, Jonathan Wage wrote: > > Hi, > > > > The idea of a MVC is that you don't do any data retrieving or > manipulation > > in your templates. You should

Re: [symfony-users] doSelect array result converted to ArrayDecorator in template

2010-04-22 Thread Jonathan Wage
Hi, The idea of a MVC is that you don't do any data retrieving or manipulation in your templates. You should do this in your controller and pass the value you want to your views. - Jon On Thu, Apr 22, 2010 at 5:24 PM, Joshua wrote: > > symfony version 1.4.4 > > In the action class I'm doing >

Re: [symfony-users] Re: Using sf 2.0

2010-03-22 Thread Jonathan Wage
). > > About the 2.0's: Will we have the forms? And the routes? > > Yes. > > > Thanks in advance once more > > On 22 mar, 00:33, Jonathan Wage wrote: > > Hi, > > > > On Sat, Mar 20, 2010 at 1:07 PM, Sid Ferreira wrote: > > > Hi

Re: [symfony-users] Re: Using sf 2.0

2010-03-21 Thread Jonathan Wage
octrine 2.0? Is it at the same alpha stage? Is there a > sfDoctrine20Plugin? > > The plan for Doctrine 2 stable release is September 1st 2010. Yes, sfDoctrine2Plugin exists for symfony 1.3 and 1.4. - Jon > Thanks in advance > > On 19 mar, 15:29, Jonathan Wage wrote: > > Hi,

Re: [symfony-users] Using sf 2.0

2010-03-19 Thread Jonathan Wage
Hi, Symfony 2 just really isn't ready for a real project. It was a preview release. Lots of functionality is missing and not added yet. Things will change a lot. You will continually run into problems and missing functionality. It will be added for sure, we just have to settle on some core things

Re: [symfony-users] Can someone help me translating this Doctrine snippet to Propel?

2010-03-14 Thread Jonathan Wage
function getValueFor($tableName, $id, $columnName) { $object = call_user_func_array(array($tableName.'Peer', 'retrieveByPk'), array($id)); return $object->{'get'.sfInflector::camelize($columnName)}; } I think something like this? - Jon On Sun, Mar 14, 2010 at 4:43 PM, Christian Schaefer w

Re: [symfony-users] Re: Doctrine schema for a widget system ?

2010-02-21 Thread Jonathan Wage
stuser' > and I still have the same error. > Which is pretty weird since it since unrelated with the inheritance > stuff... > Anyway, any advice on the design question ? > > On 22 fév, 00:50, Jonathan Wage wrote: > > I think user is a reserved word :) Try changing t

Re: [symfony-users] Re: Doctrine schema for a widget system ?

2010-02-21 Thread Jonathan Wage
I think user is a reserved word :) Try changing the table name. - Jon On Sun, Feb 21, 2010 at 6:48 PM, ju1ius wrote: > This is my first attempt: > > config/doctrine/schema.yml: > --- > User: > actAs: >Sluggable: > > unique: true > > fields:

Re: [symfony-users] Symfony 2 and changing a Bundle in the Application

2010-02-20 Thread Jonathan Wage
Hi, I am not sure how to accomplish this yet, but I can tell you the old way of doing it in Symfony was a made up standard to work around the lack of oo in symfony. Now I am thinking the way to accomplish will be a much more natural oo solution. Something like creating a new bundle that simply ext

Re: [symfony-users] app:clone task

2010-02-05 Thread Jonathan Wage
I don't think a task is required. Can't you just do: cp -r apps/frontend apps/new_app - Jon On Fri, Feb 5, 2010 at 4:33 PM, bkuberek wrote: > Hi, > > I have a project which consists of one base (skeleton) application and > for every new application we create we just want to duplicate the > ske

Re: [symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Jonathan Wage
You can't do it via the schema, but at any point during bootstrap you can retrieve the table instance of a model and add/change things with it. Or you can override the setup method and do it there like you said. - Jon On Wed, Dec 30, 2009 at 6:53 AM, Lukas Kahwe Smith wrote: > Ahoi, > > I am won

Re: [symfony-users] ysfYUIPlugin and isXmlHttpRequest()

2009-12-19 Thread Jonathan Wage
I've actually had this issue when using YUI for ajax. I hacked around it by sending my own flag so that Symfony knows it is an ajax request. - Jon On Sat, Dec 19, 2009 at 2:36 AM, Lukas Kahwe Smith wrote: > > On 18.12.2009, at 13:20, Lukas Kahwe Smith wrote: > > > > > On 18.12.2009, at 12:14, Lu

[symfony-users] New version of sfDoctrineGuardPlugin

2009-12-16 Thread Jonathan Wage
Hi, I am sending this message to notify everyone of some plans for sfDoctrineGuardPlugin. Today I branched http://svn.symfony-project.org/plugins/sfDoctrineGuardPlugin/trunk/ to http://svn.symfony-project.org/plugins/sfDoctrineGuardPlugin/branches/1.3/ If you are using symfony 1.3 or 1.4 and wan

Re: [symfony-users] token ##PACKAGE## in sf1.4 base model classes should be replaced by?

2009-12-07 Thread Jonathan Wage
r your work. > Just out of curiosity, what is the reason why ##EMAIL## is not parsed > out of properties.ini, or rather not at all ATM? > > Georg > > Jonathan Wage schrieb: > > This is fixed now in SVN and the values come from the properties.ini > file. > > > > -

Re: [symfony-users] token ##PACKAGE## in sf1.4 base model classes should be replaced by?

2009-12-07 Thread Jonathan Wage
This is fixed now in SVN and the values come from the properties.ini file. - Jon On Thu, Dec 3, 2009 at 4:15 PM, Georg Gell wrote: > Hi, > > the following tokens can be found in the autogenerated base model > classes in sf 1.4. > * @package##PACKAGE## > * @subpackage ##SUBPACKAGE## > * @

Re: [symfony-users] Problem with sfDoctrineGuardPlugin

2009-12-01 Thread Jonathan Wage
The undefined variable: e error is fixed now in SVN. - Jon On Tue, Dec 1, 2009 at 12:29 PM, Trailfinder wrote: > Hi All, > > Running latest svn of symfony 1.4 / latest svn (today) of > sfDoctrineGuardPlugin. > > When running following command i get an error > > r...@ubuntu:/home/workstate/testp

Re: [symfony-users] Re: doctrine - Jonathan.Wage - what is wrong in my ticket ?

2009-12-01 Thread Jonathan Wage
Maybe this? $this->setDefaults(array( 'authors_list' => array(2) )); On Tue, Dec 1, 2009 at 7:52 AM, dziobacz wrote: > But I can set default value for select list for id_book (model Books) > or id_author (model Authors), but default value only doesn't work for > authors_list or books_l

Re: [symfony-users] Re: Multiple Doctrine Databases / Sf1.4 Issues

2009-11-26 Thread Jonathan Wage
This should be fixed now. - Jon On Wed, Nov 25, 2009 at 1:29 PM, Thomas Parisot // Oncle Tom < tho...@oncle-tom.net> wrote: > I'm not encountering this problem anymore with Doctrine 1.2-RC1. > > :) > > On 24 nov, 19:49, "Thomas Parisot // Oncle Tom" > wrote: > > Isn't it similar to this?http://

[symfony-users] Re: How is Sympal plugin going?

2009-11-13 Thread Jonathan Wage
Hi Juan, Sympal is not quite ready yet. I started it when Symfony 1.3 development began, and now that Symfony 1.3 stable is about to be released I will be able to begin work on finishing a 1.0 version. The project is not dead, just in a little inbetween period. - Jon On Thu, Nov 12, 2009 at 7:54

[symfony-users] Re: Symfony 1.3 + Doctrine 2

2009-11-04 Thread Jonathan Wage
Nope. - Jon On Wed, Nov 4, 2009 at 9:17 AM, roberto german puentes diaz < puentesd...@gmail.com> wrote: > Hi to all > > i want test Symfony 1.3 + Doctrine 2, with jobeet tutorial. > Is it possible? > > -- > Cr. Puentes Diaz > MP 10.12726.9 > Córdoba - Argentina > > www.puentesdiaz.com.ar/blog/

[symfony-users] Re: sympal component content error

2009-11-03 Thread Jonathan Wage
Sympal was originally built with Symfony 1.3 from SVN. I am waiting until symfony 1.3 and Doctrine 1.2 are released and stable before I pick it back up. Make sure you are executing the right application for the site record that is in the database. - Jon On Tue, Nov 3, 2009 at 5:23 PM, Amadeus w

[symfony-users] Re: Unknown method JobeetJob::getDateTimeObject

2009-10-29 Thread Jonathan Wage
Are you using Symfony 1.3? - Jon On Thu, Oct 29, 2009 at 5:17 PM, HiDDeN wrote: > > I'm following the Jobeet tutorial, and in the Day 11, just before the > "Forms Security" section, in the last portion of code, there is a line > that says "$job->getDateTimeObject('expires_at')->format('y/m/d')"

[symfony-users] Re: sf 1.3 - loading fixtures

2009-10-27 Thread Jonathan Wage
Thanks. We'll need to throw an exception or something if you use a non-unique key name. They must be unique in order for it to work properly. - Jon On Tue, Oct 27, 2009 at 1:26 PM, david wrote: > > Just an fyi - there appears to be a small issue with Doctrine 1.2 when > loading fixtures when ch

[symfony-users] Re: Where in symfony can I set doctrine-specific attributes ?

2009-10-20 Thread Jonathan Wage
That will work as well. - Jon On Tue, Oct 20, 2009 at 11:30 AM, Greg Maruszeczka wrote: > > On Tue, 20 Oct 2009 08:11:13 -0700 (PDT) > Hong Kil Dong wrote: > > > > > I wish ot use ENUM type in my Doctrine model, and according to > > doctrine manual I have to set attribute > > Doctrine::ATTR_U

[symfony-users] Re: Where in symfony can I set doctrine-specific attributes ?

2009-10-20 Thread Jonathan Wage
In your ProjectConfiguration. Check the Symfony + Doctrine documentation on the symfony website for how to set attributes. http://www.symfony-project.org/doctrine/1_2/en/03-Configuration - Jon On Tue, Oct 20, 2009 at 11:11 AM, Hong Kil Dong wrote: > > I wish ot use ENUM type in my Doctrine mod

[symfony-users] Re: Connect to Sybase ASE

2009-10-16 Thread Jonathan Wage
I don't think PDO has sybase support does it? - Jon On Fri, Oct 16, 2009 at 10:37 AM, Rodrigo Ruiz Fuentes wrote: > > Hi, > I wrote before to the list because I needed to connect symfony 1.0.x > with Sybase ASE, which was impossible. Now I've upgraded to symfony > 1.2.9 and I need to connect to

[symfony-users] Re: Sf/Doctrine : Using package option in schema file.

2009-10-06 Thread Jonathan Wage
The model generation does not work this way and the package feature cannot be used with symfony. The package feature is how we generate models for plugins in symfony. - Jon On Tue, Oct 6, 2009 at 4:46 AM, David BOUCHÉ wrote: > > I've created the /config/doctrine/webservices.schema.yml : > -

[symfony-users] Re: sfDoctrineGuardPlugin installation with symfony 1.3

2009-09-25 Thread Jonathan Wage
Yes. You can get it from svn though. Once 1.3 is released we'll package it up so you can install via PEAR. http://svn.symfony-project.org/plugins/sfDoctrineGuardPlugin/trunk - Jon On Fri, Sep 25, 2009 at 5:25 PM, alessandro cinelli < alessandro.cine...@gmail.com> wrote: > sfPluginRestException:

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-24 Thread Jonathan Wage
I really have to give my two cents because I really think you have a lot to learn as a developer but more importantly as a person. You better start preparing for a career change if you are unable to adapt and learn something as simple as this. Other people all over the world are using these tools

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-24 Thread Jonathan Wage
Ignorance is bliss. - Jon On Thu, Sep 24, 2009 at 10:04 AM, bghost wrote: > > This is generated HTML code that I got after inserting the language > component within a table cell: > > > > where component 'language' is a component that uses Symfony WEB forms: > (from Jobeet tutorial): > > > >

[symfony-users] Re: How to use raw mysql query in a symfony task

2009-08-08 Thread Jonathan Wage
Since it uses PDO and mysql_query() uses a connection resource created from mysql_connect(), you could not use mysql_query(). You could retrieve the PDO connection though and issue the SQL query through that. Does it have to be mysql_query()? - Jon On Sat, Aug 8, 2009 at 2:05 PM, Gábor Fási wrot

[symfony-users] Re: Doctrine order by sum(....) problem: Unknown aggregate alias: s

2009-07-22 Thread Jonathan Wage
This is a known issue with the orderby dql parser. An alternative workaround is to select the sum as an alias and then order by that alias. - Jon On Wed, Jul 22, 2009 at 6:05 PM, xwolf wrote: > > I have found the problem. In doctrine where it parses order by clouse, > string is exploded by ','

[symfony-users] Re: Slugify?

2009-07-20 Thread Jonathan Wage
Slug is just a common word used for this type of functionality in the web world. - Jon On Mon, Jul 20, 2009 at 9:47 AM, Sid Ferreira wrote: > But why is it called 'slug'? > --- > Sidney G B Ferreira > Desenvolvedor Web > > > > On Mon, Jul 20, 2009 at 11:40, Tom Haskins-Vaughan < > t...@templest

[symfony-users] Re: Doctrine onDelete: SET NULL not working

2009-07-20 Thread Jonathan Wage
Make sure both the foreign and local key definition are exactly the same. Same type, same length, same options, etc. - Jon On Mon, Jul 20, 2009 at 9:36 AM, Tom Haskins-Vaughan < t...@templestreetmedia.com> wrote: > > I applied the patch to a test wc and this is what I get: > > // in schema.yml >

[symfony-users] Re: How to stop doctrine creating tables for a single model?

2009-07-14 Thread Jonathan Wage
Check out the Doctrine::ATTR_EXPORT attribute to configure what gets exported to the dbms from your models. - Jon On Tue, Jul 14, 2009 at 5:31 PM, Eno wrote: > > On Tue, 14 Jul 2009, cleve wrote: > > > The doctrine/symfony task builds the sql tables based on the model > > schema and the schema

[symfony-users] Re: symfony Day Cologne

2009-07-13 Thread Jonathan Wage
See you there! Can't wait. - Jon On Mon, Jul 13, 2009 at 1:28 PM, Dennis Benkert wrote: > > Hey everybody! > > symfony Day Cologne will be the first symfony conference in Germany. > One day, international speakers, a workshop, and a party. There will > be talks given by various members of the s

[symfony-users] Re: Deployment Strategies

2009-07-09 Thread Jonathan Wage
Thank your for your descriptions, > > Rene Jochum > > > > Jonathan Wage schrieb: > > They are just ruby scripts :) You just write ruby code essentially to > > automate some commands in to a script that can be invoked easily across > > lots of machines. > > >

[symfony-users] Re: Deployment Strategies

2009-07-09 Thread Jonathan Wage
would recommend using some existing best practice for deployment like the svn diff/patch and capistrano approach. - Jon On Thu, Jul 9, 2009 at 12:02 PM, Eno wrote: > > On Thu, 9 Jul 2009, Jonathan Wage wrote: > > > Now the above commands are all done manually but a lot of time

[symfony-users] Re: Deployment Strategies

2009-07-09 Thread Jonathan Wage
10:08 AM, Pablo Godel wrote: > > Jon, > > What are the advantages you see on using this process instead of doing > a checkout and then updates on the produciton side? > > Pablo > > > On Thu, Jul 9, 2009 at 10:35 AM, Jonathan Wage wrote: > > My deployment

[symfony-users] Re: Deployment Strategies

2009-07-09 Thread Jonathan Wage
My deployment process is simple. Here is a sample deployment of some changes. Note: This all assumes you are working on a production svn export which is in sync with the tag 1.0.1. We will make some changes and tag it as 1.0.2 and upgrade. * Open up file and make some changes vi index.php * Comm

[symfony-users] Re: [sfGuardPlugin]: CAN NOT access

2009-07-08 Thread Jonathan Wage
It needs to be encrypted in the database. - Jon On Wed, Jul 8, 2009 at 4:13 PM, Germana Oliveira wrote: > > Should it be encrypted to validate it > > > The password is not encrypted in the database. > > - Jon > > On Wed, Jul 8, 2009 at 3:59

[symfony-users] Re: [sfGuardPlugin]: CAN NOT access

2009-07-08 Thread Jonathan Wage
The password is not encrypted in the database. - Jon On Wed, Jul 8, 2009 at 3:59 PM, Germana Oliveira wrote: > > Hi!!! > > i have this on sf_guard_user in my sql DB: > > mysql> select * from sf_guard_user; > > ++--+---+--+--+++---+

[symfony-users] Re: Problem with Doctrine build from existing DB

2009-07-07 Thread Jonathan Wage
The double underscores in your column names might be causing the problem. - Jon On Tue, Jul 7, 2009 at 10:53 AM, Stefan Sturm wrote: > > Hello, > > I build my schema.yml file from an existing DB. For one table it looks > like this: > > Cities: > tableName: cities > columns: >id: > ty

[symfony-users] Re: Doctrine Lazy loading turned off in test evn?

2009-07-03 Thread Jonathan Wage
Lazy loading is not off in the test suite. It works for me when I have used it. - Jon On Fri, Jul 3, 2009 at 5:22 AM, johnwards wrote: > > Hello, > > Last week I was driven mad by some functional tests that were failing > but when I tried to replicate the fail in the dev environment in the > b

[symfony-users] Re: Return objects within distance

2009-06-29 Thread Jonathan Wage
Check this out. http://www.doctrine-project.org/documentation/manual/1_1/en/behaviors#core-behaviors:geographical - Jon On Mon, Jun 29, 2009 at 4:27 PM, oweit...@gmx.de wrote: > > try rhis link > > http://codeidol.com/sql/sql-hack/Number-Crunching/Calculate-the-Distance-Between-GPS-Locations/

[symfony-users] Re: How to clear cache for doctrine build functions ?

2009-06-29 Thread Jonathan Wage
If you remove some models from your YAML file then you need to remove the files that were generated in your lib/model, lib/form, etc. folders. - Jon On Mon, Jun 29, 2009 at 2:20 PM, David wrote: > > Hi, > > I made a mistake in my doctrine/shema.yml and then, rewriting a couple > of entries. > B

[symfony-users] Re: How to copy Doctrine object data to another ?

2009-06-29 Thread Jonathan Wage
Maybe this is what you want? $oSource = Doctrine::getTable('MyClass')->find(1); $oDest = Doctrine::getTable('MyClass')->find(2); $oDest->fromArray($oSource->toArray(false)); // no deep copy required $oDest->save(); - Jon On Mon, Jun 29, 2009 at 12:39 PM, Jess OVR wrote: > Hi all > > I'm quite

[symfony-users] Re: mime type detection

2009-06-24 Thread Jonathan Wage
Forgive me if someone already suggested this but you should look at the code built in to symfony. lib/validator/sfValidatorFile.class.php It has some nice code for guessing mime types several different ways. Including fileinfo, guessing from binary info, extension, etc. - Jon On Wed, Jun 24, 2

[symfony-users] Re: doctrine errors.

2009-06-21 Thread Jonathan Wage
One thing I forgot to ask you. Can you print_t() the value of $name in the Doctrine code and tell me what it is? Thanks, Jon On Sun, Jun 21, 2009 at 5:29 AM, Andrei Dziahel wrote: > Hi. > > Can we take a look at your schema? > > 2009/6/20 Rajat > >> >> Hello All, >> I keeping getting these erro

[symfony-users] Re: sfDoctrineRouteCollection, compound PKs and admin-generator

2009-06-20 Thread Jonathan Wage
I don't think the admin generators support composite foreign keys. - Jon On Fri, Jun 19, 2009 at 3:51 PM, Tom Haskins-Vaughan < t...@templestreetmedia.com> wrote: > > Hi, > > This is an excerpt from my schema.yml: > > InternationalPresence: > actAs: { Timestampable: ~ } > columns: > comp

[symfony-users] Re: Validator for wysiwyg

2009-06-19 Thread Jonathan Wage
What would it do? Validate the html? - Jon On Fri, Jun 19, 2009 at 8:20 AM, gimler wrote: > > has anybody a form validator for a wysiwyg widget for example tinymce > widget??? > > > -- Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer & Evangelist sensiolabs.com | jwage.com |

[symfony-users] Re: accessing the doctrine schema configuration

2009-06-18 Thread Jonathan Wage
I think getOptions() is already a method on Doctrine_Template. Thanks, Jon On Thu, Jun 18, 2009 at 3:04 PM, Jonathan Franks wrote: > > Thanks Thomas - that worked. I made a getOptions method in my > ObjectAttributes template and then called > > Doctrine::getTable($this->options['model'])- >

[symfony-users] Re: sf 1.2.7 / dcotrine 1.0.10 - admin generator, batch delete, actAs SoftDelete, error

2009-06-18 Thread Jonathan Wage
Postgres? Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer & Evangelist sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org On Thu, Jun 18, 2009 at 12:00 PM, virtualize wrote: > > Hi all > > When I use the batch action to delete one or more items in an admi

[symfony-users] Re: Overriding plugin schema with doctrine and sf 1.2

2009-06-17 Thread Jonathan Wage
el.doctrine >> sfGuardGroup: >> ...rest of the original schema.yml from sfDoctrineGuardPlugin goes here >> ... >> >> trying to re-generate model with symfony doctrine:build-all-reload >> still sfGuardGroup.class.php and all the rest gets re-generated inside >>

[symfony-users] Re: Overriding plugin schema with doctrine and sf 1.2

2009-06-17 Thread Jonathan Wage
an wrote: > Hi all, > > In March, Jonathan Wage wrote: > > Add this to the top of the plugin: "package: > sfDoctrineGuardPlugin.lib.model.doctrine" > This "package" option is automatically added to the schema files found in > plugins so that the models a

[symfony-users] Re: length integer in doctrine - why so many differences between doctrine and mysql ?

2009-06-15 Thread Jonathan Wage
to know too. > > > 2009/6/16 dziobacz > > >> May I also know why ? :) >> >> >> On 15 Cze, 22:00, dziobacz wrote: >> > ok thx ;) >> > >> > On 15 Cze, 21:37, Jonathan Wage wrote: >> > >> > > Yes this is normal

[symfony-users] Re: length integer in doctrine - why so many differences between doctrine and mysql ?

2009-06-15 Thread Jonathan Wage
Yes this is normal. Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer & Evangelist sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org On Mon, Jun 15, 2009 at 1:08 PM, dziobacz wrote: > > integer(2) in doctrine in schema.yml = smallint(6) in mysql > integer(

[symfony-users] Re: What you think?

2009-06-10 Thread Jonathan Wage
ource Software Developer & Evangelist sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org On Wed, Jun 10, 2009 at 8:25 AM, Sid Ferreira wrote: > I've just noticed that it is based in sf 1.0!!! > Also... wanna find out how to vote on it :p > > > On Wed, Ju

[symfony-users] Re: What you think?

2009-06-10 Thread Jonathan Wage
Should symfony have a check under EDP? It has an event system and is a pretty good feature. Also, I would say Symfony should have a check under templates :) Also, why does Zend have a check under ORM? Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer & Evangelist sensiolabs.com |

[symfony-users] Re: STILL CANNOT LOCATE Driver, sigh... Re: Couldn't locate driver named mysql

2009-06-09 Thread Jonathan Wage
Sometimes apache and the command line have different php.ini files. Make sure you are editing the php.ini for apache. You can check the location of your php.ini by checking phpinfo(); in a php script which is executed from the browser/apache. Thanks, Jonathan H. Wage (+1 415 992 5468) Open Source

[symfony-users] Re: sympal installation problem

2009-05-19 Thread Jonathan Wage
mentioned above: a > sfError404Exception. > > On 18 Mai, 17:06, Jonathan Wage wrote: > > I know what the issue is. > > > > When you are in a certain "site" in sympal, the routes for that site are > > loaded. Currently when you view the content list, it in

[symfony-users] Re: sympal installation problem

2009-05-18 Thread Jonathan Wage
. > > > > On 5/17/09, Daniel Holmes wrote: > > > > I have this same issue; however changing to interactive didn't fix it > > for me. Let me know if there is anything in particular i can do to > > give you the information you need. > > > > O

[symfony-users] Re: sfSympalPlugin

2009-05-18 Thread Jonathan Wage
I am not sure why you'd be getting this error and I don't. You need to set the attribute like this: attributes: mysql_attr_use_buffered_query: true Not sure if that'll work, but if it will that is the syntax it'd be in. - Jon On Sun, May 17, 2009 at 8:28 AM, David Ashwood wrote: > I’ve tri

[symfony-users] Re: is symfony aware of the yaml file that an option is defined in?

2009-05-16 Thread Jonathan Wage
No, it is not. - Jon On Fri, May 15, 2009 at 9:32 PM, nick wrote: > > > Symfony depends on a lot of yaml files, such as security.yml and > setttings.yml and routing.yml. Does Symfony know in which file a given > option is defined in? I'm under the impression that the division of > options into

[symfony-users] Re: sympal installation problem

2009-05-15 Thread Jonathan Wage
nd executed > the sympal install task again, this time with the interactive param. > > Thanks. > > On 5/15/09, Jonathan Wage wrote: > > Are you using the latest version of symfony from SVN? > > > > - Jon > > > > On Fri, May 15, 2009 at 4:39 AM, Gandalf wr

[symfony-users] Re: sympal installation problem

2009-05-15 Thread Jonathan Wage
Are you using the latest version of symfony from SVN? - Jon On Fri, May 15, 2009 at 4:39 AM, Gandalf wrote: > > Hello > > I followed the sympal setup instructions, but I got this error: > > 404 | Not Found | sfError404Exception > Unable to find the > Component : Content > Table : content > ob

  1   2   3   4   5   >