Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-16 Thread spider
I tried this syntax as well but I cannot make it work. Maybe I made something wrong? my app/config/config.yml. 35: doctrine: 36: dbal: 43: types: 44: enum: Acme\TestBundle\Types\EnumType my src/Acme/TestBundle/Types/EnumType.php http://pastebin.com/06buTkYE When I

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-16 Thread badllama77
I recently posted an issue that may be related to this. When your using any of the doctrine tools that use the schema tool any custom types will fail. There isn't a call to registerDoctrineTypeMapping. So the type gets registered with the orm but not with the dbal. I changed the

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread spider
Sorry if I reply to this old post, but what if I want to map enum type to string? I tried the following edit in app/config/config.yml: doctrine: dbal: types: enum: string but each time I try the doctrine:mapping:convert console command it throw the exception about enum

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread Loïc Vernet
The same happens for blob types, it's really annoying. 2011/6/15 spider spide...@gmail.com Sorry if I reply to this old post, but what if I want to map enum type to string? I tried the following edit in app/config/config.yml: doctrine: dbal: types: enum: string

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread spider
Since I need enum type only to convert from database to ORM mapping, I modified MySqlPlatform.php under Doctrine/DBAL/Platforms to add enum type. It is not very nice way to get it work (next time I'll update vendors I'll lose this edit) but it works and I only need to update my Doctrine Model

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 12:05, spider a écrit : Sorry if I reply to this old post, but what if I want to map enum type to string? I tried the following edit in app/config/config.yml: doctrine: dbal: types: enum: string but each time I try the doctrine:mapping:convert console

Aw: Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread con
Does this work for doctrine_mongodb as well? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

Re: Aw: Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread Christophe COEVOET
Le 15/06/2011 15:15, con a écrit : Does this work for doctrine_mongodb as well? This is about adding a DBAL type. So it has nothing to do with mongodb. For mongodb, look at the mongodb odm doc to see if such a thing is possible in the ODM. But the bundle don't have such a configuration

[symfony-users] Re: Doctrine doesn't free up memory after transaction commit

2011-05-23 Thread Galou
Few years ago, I remember I meet the same problem in a database migration script. The problem was coming from the xdebug module. I don't know how this module work but it was making the script growing up in the memory. The problem was resolved by disabling the xdebug module. On 21 mai, 16:55,

[symfony-users] Re : Doctrine generate entities base path error

2011-05-23 Thread arnobeck.sdv
I've found. A bundle cannot be a symbolic link. Too bad. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email

[symfony-users] Re: Doctrine doesn't free up memory after transaction commit

2011-05-23 Thread mohdshakir
I fixed my problem, by freeing up the objects; http://www.doctrine-project.org/projects/orm/1.2/docs/manual/improving-performance/en#free-objects On May 22, 11:41 pm, Galou gael.duc...@gmail.com wrote: Few years ago, I remember I meet the same problem in a database migration script. The

[symfony-users] Re: Doctrine doesn't free up memory after transaction commit

2011-05-21 Thread Galou
It could be due to the php xdebug module. Galou On 20 mai, 09:14, Mohd Shakir Zakaria mohdsha...@gmail.com wrote: I keep on getting this error when running one of my scripts; PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 71 bytes) in ...

[symfony-users] Re: Doctrine doesn't free up memory after transaction commit

2011-05-21 Thread mohdshakir
Can you elaborate? On May 21, 1:34 am, Galou gael.duc...@gmail.com wrote: It could be due to the php xdebug module. Galou On 20 mai, 09:14, Mohd Shakir Zakaria mohdsha...@gmail.com wrote: I keep on getting this error when running one of my scripts; PHP Fatal error:  Allowed

[symfony-users] Re: Doctrine Extensions Bundle - Wich one ?

2011-05-15 Thread Christophe Willemsen
Ok delete, didn't see that Stof is the implementation of l3pp4rd for sf2. Shame on me damned :-( On 15 mai, 17:28, Christophe Willemsen willemsen.christo...@gmail.com wrote: Hi all, I can see that there are 2 different DoctrineExtensions Bundle. Which one is recommended for use with sf2 (Stof

Re: [symfony-users] Re: Doctrine Extensions Bundle - Wich one ?

2011-05-15 Thread oscar balladares
hehehehe. Never mind [?] 2011/5/15 Christophe Willemsen willemsen.christo...@gmail.com Ok delete, didn't see that Stof is the implementation of l3pp4rd for sf2. Shame on me damned :-( On 15 mai, 17:28, Christophe Willemsen willemsen.christo...@gmail.com wrote: Hi all, I can see that

[symfony-users] Re: Doctrine ORM Data Fixtures

2011-03-14 Thread dustin10
I had tried that already, but it wasn't working. Just tried it again and still no luck. I looked at a lot of the fixture examples in other bundles and none of them called flush() so I figured that doctrine called this for you after the load() method. Any other ideas? Thanks, Dustin On Mar 14,

[symfony-users] Re: doctrine dbal connection

2011-03-01 Thread Nico
On 27 Feb., 21:28, Christophe COEVOET s...@notk.org wrote: Le 27/02/2011 01:01, igniteflow a crit : I'm having the same issue.  I'm using the sandbox and have been following thehttp://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial, but am getting the

[symfony-users] Re: doctrine dbal connection

2011-03-01 Thread Otávio
Hi everybody, I had the same problem when I try use doctrine:database:drop or doctrine:database:create. I clear the cache files and try this commands again and it works, the problem does not happen again. I hope it helps someone. Otávio. On 16 fev, 14:17, Nico nico.schu...@googlemail.com

Re: [symfony-users] Re: doctrine dbal connection

2011-03-01 Thread Christophe COEVOET
Le 28/02/2011 16:08, Nico a écrit : On 27 Feb., 21:28, Christophe COEVOETs...@notk.org wrote: Le 27/02/2011 01:01, igniteflow a crit : I'm having the same issue. I'm using the sandbox and have been following thehttp://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial,

[symfony-users] Re: doctrine dbal connection

2011-02-27 Thread igniteflow
I'm having the same issue. I'm using the sandbox and have been following the http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial, but am getting the doctrine.dbal.default_connection must be defined. error message On Feb 21, 2:06 pm, Daniel Londero

Re: [symfony-users] Re: doctrine dbal connection

2011-02-27 Thread Christophe COEVOET
Le 27/02/2011 01:01, igniteflow a écrit : I'm having the same issue. I'm using the sandbox and have been following the http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial, but am getting the doctrine.dbal.default_connection must be defined. Which version of the

Re: [symfony-users] Re: Doctrine version classes

2011-02-22 Thread Georg
Be careful with the generateFiles option. This regenerates the files on *each* usage of the model class (see the change time of the generated file after a usage). And this creates serious troubles with APC, because APC always re-caches the file, and this leads to have cache fragmentation, and

Re: [symfony-users] Re: Doctrine version classes

2011-02-22 Thread Sebastien Armand [Pink]
Yikes! Thank you, as we're only in dev right now there's no APC installed but it is definitely on the list for our prod environment so we'll keep that in mind. On Tue, Feb 22, 2011 at 4:28 PM, Georg geor...@have2.com wrote: Be careful with the generateFiles option. This regenerates the files on

[symfony-users] Re: doctrine dbal connection

2011-02-21 Thread Daniel Londero
On 16 Feb, 18:17, Nico nico.schu...@googlemail.com wrote: If I try to use the create database coomand (php app/console doctrine:database:create -v), It gives me this error message: + [InvalidArgumentException] The parameter doctrine.dbal.default_connection must be defined. This happens

[symfony-users] Re: doctrine dbal connection

2011-02-21 Thread Daniel Londero
On 16 Feb, 18:17, Nico nico.schu...@googlemail.com wrote: If I try to use the create database coomand (php app/console doctrine:database:create -v), It gives me this error message: + [InvalidArgumentException] The parameter doctrine.dbal.default_connection must be defined. I've the

[symfony-users] Re: doctrine dbal connection

2011-02-21 Thread Daniel Londero
On 21 Feb, 13:13, Daniel Londero daniel.lond...@gmail.com wrote: On 16 Feb, 18:17, Nico nico.schu...@googlemail.com wrote: If I try to use the create database coomand (php app/console doctrine:database:create -v), It gives me this error message: + [InvalidArgumentException] The

[symfony-users] Re: Doctrine version classes

2011-02-20 Thread Sebastien Armand [Pink]
Found the reason behind this issue though I don't have any very good solution for now, but in case someone else gets this kind of problem, here it goes: First of all you need the 'generateFiles' option to be true when you define your versionable models. Once this is done, you will have a new

[symfony-users] Re: doctrine dbal connection

2011-02-18 Thread Daniel
Hello, I do experience the the same problem, after following the tutorials and configurations as provided in: http://docs.symfony-reloaded.org/master/guides/doctrine The dbal connection itself seems to work. When I manually create a a table in the database and then place the following

[symfony-users] Re: (doctrine 1.2) The root class of the query must have at least one field selected.

2011-02-04 Thread Manu
well I was able to make it work by adding c.id in the select. But isn't this a bug ? Doctrine doesn't see that I asked for count(c.id) ? -- 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

Re: [symfony-users] Re: (doctrine 1.2) The root class of the query must have at least one field selected.

2011-02-04 Thread Christophe COEVOET
Le 04/02/2011 10:07, Manu a écrit : well I was able to make it work by adding c.id in the select. But isn't this a bug ? Doctrine doesn't see that I asked for count(c.id) ? In your request, the main entity was Content. COUNT(c.id) does not select a field of Content to be able to build the

[symfony-users] Re: [doctrine-user] Re: Two Doctrine connection problems - Memcache and Postgresql

2011-02-02 Thread Michał Piotrowski
2011/2/2 Miha Vrhovnik miha.vrhov...@gmail.com: In memcache it's typo in a config: post: 11213 should be port: 11213. Indeed. But, after fixing typo, the problem remained. It's all by the fact that I created problem - typo, I have not noticed this and I created workaround - patch for the

[symfony-users] Re: [doctrine-user] Re: Two Doctrine connection problems - Memcache and Postgresql

2011-02-02 Thread Michał Piotrowski
2011/2/2 Miha Vrhovnik miha.vrhov...@gmail.com: In memcache it's typo in a config: post: 11213 should be port: 11213. Regarding the postgres it's postgres misconfiguration. add folloving line into pg_hba.conf if not yet present host    all all 127.0.0.1/32 md5

[symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-02-02 Thread Alexander Kachkaev
Christophe, thank you for the advice! But what about the console? As far as I understand I am not able to use all the benefits of the custom mapping type until I have generated the entities and the DB schema. And, of course, this requires the type to be registered as well. The must be a

[symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-02-02 Thread Alexander Kachkaev
I guess there might be some global handler for all the resources. Thus the link to entity manager object could be extracted in autoload.php and everything would be fine. But I am not sure about this hypothesis. :) On Feb 1, 9:09 pm, Christophe COEVOET s...@notk.org wrote: Le 01/02/2011 20:04,

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-02-02 Thread stof
On Tue, 1 Feb 2011 16:14:58 -0800 (PST), Alexander Kachkaev alex.kachk...@gmail.com wrote: I guess there might be some global handler for all the resources. Thus the link to entity manager object could be extracted in autoload.php and everything would be fine. But I am not sure about this

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-02-02 Thread stof
On Tue, 1 Feb 2011 14:56:40 -0800 (PST), Alexander Kachkaev alex.kachk...@gmail.com wrote: Christophe, thank you for the advice! But what about the console? As far as I understand I am not able to use all the benefits of the custom mapping type until I have generated the entities and the DB

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-02-02 Thread Christophe COEVOET
Le 02/02/2011 17:52, stof a écrit : On Tue, 1 Feb 2011 16:14:58 -0800 (PST), Alexander Kachkaev alex.kachk...@gmail.com wrote: I guess there might be some global handler for all the resources. Thus the link to entity manager object could be extracted in autoload.php and everything would be

[symfony-users] Re: Doctrine version classes

2011-01-06 Thread Sebastien Armand [Pink]
Now the query I was trying earlier is working. However, I need to also query a few other tables that are relations on my object, but the relations are not set as part as the Version object. I did override the setUp method of the version objects in order to benefit from the relations directly. So

[symfony-users] Re: doctrine many-to-many relation

2011-01-02 Thread woolfas
Description of M:M relation you can find in this page: http://melikedev.com/2009/12/09/symfony-w-doctrine-saving-many-to-many-mm-relationships/ Full schema.yml configuration reference for doctrine you can find here: http://www.symfonyreference.com/schema Good luck! On Dec 31 2010, 6:41 pm,

[symfony-users] Re: Doctrine: Distinct query

2010-11-06 Thread mahadi
I could solve it: $q = Doctrine_Query::create() -select('DISTINCT(k.bezeichnung) AS bezeichnung') -from('Kompetenzen k'); Pretty easy ;) On Nov 6, 10:52 am, mahadi profi...@altmuehlnet.de wrote: Hi, im trying to select some entries out of the

[symfony-users] Re: doctrine insert-sql

2010-10-27 Thread pghoratiu
No type specified for the uri and label columns in the failing query: CREATE TABLE layar_actions (id BIGINT UNIQUE AUTO_INCREMENT, uri , label , entrepeneur_id BIGINT, INDEX entrepeneur_id_idx (entrepeneur_id), PRIMARY KEY(id)) ENGINE = INNODB As to why is this I can't say. gabriel On Oct

[symfony-users] Re: doctrine query and not in (select ...) doesnt work

2010-10-25 Thread axel at
hm adding an alias in the subquery leads to a doctrine exception :-( regards axel On 24 Okt., 16:52, Stéphane stephane.er...@gmail.com wrote: Perhaps you should add an alias in the subquery for the table ? Regards, Before Printing, Think about Your Environmental Responsibility! Avant

Re: [symfony-users] Re: Doctrine problem with sf 1.3.7/8 - 1.4.7/8

2010-10-01 Thread Loïc Vernet
? 2010/9/28 Loïc Vernet vernet.l...@gmail.com Thanks. There are now 3 people reporting the issue in the ticket. I'm surprise there is not more feedback, because it can potentially break all projects who are using more than 1 doctrine connexion. Kris ? Jonathan ? 2010/9/24 BenjaM1

Re: [symfony-users] Re: Doctrine problem with sf 1.3.7/8 - 1.4.7/8

2010-10-01 Thread Bertrand Zuchuat
Hi Loïc, I use this solution to resolve this problem: http://www.funstaff.ch/2010/08/27/multiples-connexions-doctrine-et-le-chargement-des-modeles Best regards Bertrand Le 1 oct. 2010 à 10:37, Loïc Vernet a écrit : ? 2010/9/28 Loïc Vernet vernet.l...@gmail.com Thanks. There are now 3

Re: [symfony-users] Re: Doctrine problem with sf 1.3.7/8 - 1.4.7/8

2010-10-01 Thread Stéphane
Bertrand, good website, btw :-) (french reader) Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Oct 1, 2010 at 1:28 PM, Bertrand Zuchuat mailingl...@funstaff.chwrote: Hi Loïc, I use this

Re: [symfony-users] Re: Doctrine problem with sf 1.3.7/8 - 1.4.7/8

2010-10-01 Thread Loïc Vernet
Hi Bertrand, humm I don't get it. I mean my project works fine with 1.4.6 and without any hack. Check the ticket. ++ COil 2010/10/1 Bertrand Zuchuat mailingl...@funstaff.ch Hi Loïc, I use this solution to resolve this problem:

[symfony-users] Re: Doctrine: Can't figure how to execute this: UPDATE user SET points = LEAST(200,300)

2010-09-30 Thread webdev_aw_ucsb
I'm new to symfony myself ... but I dont think that Doctrine understands the Mysql specific function LEAST() in this case. Eg this listing for SELECT/WHERE clauses doesn't list it: http://www.doctrine-project.org/documentation/manual/2_0/en/dql-doctrine-query-language#dqlfn You can always

[symfony-users] Re: Doctrine: Can't figure how to execute this: UPDATE user SET points = LEAST(200,300)

2010-09-29 Thread torok84
Workaround: $conn = Doctrine::getConnectionByTableName('User'); $conn-exec('UPDATE user SET points = LEAST(200,300)'); Any chance this can be done using Doctrine? Paolo On Sep 29, 2:56 pm, torok84 toro...@gmail.com wrote: [ In the real application I would have something like

[symfony-users] Re: Doctrine: Can't figure how to execute this: UPDATE user SET points = LEAST(200,300)

2010-09-29 Thread guiguiboy
Be careful, LEAST is not SQL standard, this means if you change you database server, you may (will) encounter problems. Why not doing it with PHP ? You have the min function : http://fr.php.net/min On 29 sep, 15:05, torok84 toro...@gmail.com wrote: Workaround: $conn =

[symfony-users] Re: Doctrine: Can't figure how to execute this: UPDATE user SET points = LEAST(200,300)

2010-09-29 Thread torok84
I suspected that, anyway I guess if the DB changes some other query will need to be rewritten. I choose not to use PHP because it would be tens of times slower. (Using PHP would mean to fetch all the records, create relative doctrine objects, modify them and save back...). Paolo On 29 Set,

Re: [symfony-users] Re: Doctrine problem with sf 1.3.7/8 - 1.4.7/8

2010-09-28 Thread Loïc Vernet
Thanks. There are now 3 people reporting the issue in the ticket. I'm surprise there is not more feedback, because it can potentially break all projects who are using more than 1 doctrine connexion. Kris ? Jonathan ? 2010/9/24 BenjaM1 benjamin.grandf...@gmail.com Hi Loïc, I had this bug

[symfony-users] Re: Doctrine problem with sf 1.3.7/8 - 1.4.7/8

2010-09-24 Thread BenjaM1
Hi Loïc, I had this bug too and I found this which works fine for me : http://www.doctrine-project.org/jira/browse/DC-421 But I hope it will be resolved as fast as possible ... :( On Sep 24, 1:14 pm, Loïc Vernet vernet.l...@gmail.com wrote: Hi, Did someone looked at this bug ?

[symfony-users] Re: [doctrine 1.2] dropping a record from a doctrine_collection

2010-09-18 Thread Michael Hodges
SOLVED - used offsetUnset method foreach ($fees as $fee_ofs = $fee) { $drop_from_list = false; // peculiar business logic goes here . . . if ($drop_from_list) { // Drop fee from the collection.

[symfony-users] Re: Doctrine Form filter // getRelatedModelName

2010-09-17 Thread ziclo
I finaly found what i'm looking for : The solution was the use of the 'method' option which let me choose the field i want to display from the foreign table. Thanks public function configure() { $this-setWidgets(array( 'oid_cdp'= new sfWidgetFormDoctrineChoice(array('model' =

[symfony-users] Re: Doctrine Form filter // getRelatedModelName

2010-09-16 Thread ScherlOMatic
Hello! I think there is more than one solution for your problem. Try to overwrite the '_toString()' method in the model (TrackerManagerTable.class.php). Or create some own method and call it from whereever you want. Why are you implementing this logic in the filter class? BR On 16 Sep.,

[symfony-users] Re: doctrine query help needed

2010-09-07 Thread Phil Moorhouse
Is your schema already fixed? If not, the normal way to do this would be to have m-m join tables: NewsImage [ news_id, image_id ] EducationImage [ education_id, image_id ] HealthImage [ health_id, image_id] and remove: content_id type from the ContentImage table. Then if you want all news

[symfony-users] Re: Doctrine Pager max per page problem

2010-09-07 Thread ziclo
class articleActions extends sfActions { public function executeIndex(sfWebRequest $request) { // sorting if ($request-getParameter('sort') $this- isValidSortColumn($request-getParameter('sort'))) { $this-setSort(array($request-getParameter('sort'), $request-

[symfony-users] Re: doctrine query help needed

2010-09-07 Thread Shihab KB
Hi, Thanks for your reply. I cannot change my table structure.. I need to use the existing table.. regards Shihab On Sep 7, 8:55 pm, Phil Moorhouse moorhouse.p...@gmail.com wrote: Is your schema already fixed? If not, the normal way to do this would be to have m-m join tables: NewsImage [

[symfony-users] Re: Doctrine + 2 different distinct queries affecting each others' results (bug?)

2010-09-02 Thread Johannes
These problems usually occur when you are loading partial relations from the database, and later on assume that the relation was loaded completely (Doctrine has no way to tell whether an object's relation was loaded partially or completely). Try refreshRelated() to re-load the specific relation

[symfony-users] Re: Doctrine + 2 different distinct queries affecting each others' results (bug?)

2010-09-02 Thread John Kary
I also ran into this issue recently, exactly how you describe. I didn't find a real solution to it, and instead isolated each query and corresponding view into its own component. On Sep 2, 12:14 am, Guill Lo guill.b...@gmail.com wrote: Hi there! Still haven't found the solution, I'm skipping

[symfony-users] Re: Doctrine + 2 different distinct queries affecting each others' results (bug?)

2010-09-01 Thread Guill Lo
Hi there! Still haven't found the solution, I'm skipping this and will find another way to do it. But I think it's a Doctrine bug, mixing the collection of datas behind the scenes. Hope this post might help feel not so lonely if you encounter this kind of issue. On Aug 13, 9:21 pm, Guill Lo

[symfony-users] Re: Doctrine Pager max per page problem

2010-08-27 Thread ziclo
More explanation about this issue : If the number of objects returned is 10 then objects are displayed. If number of objects returned 10 then nothing is displayed. I think there is a problem with the pager. But what ? An idea ? Thank you On 6 août, 15:46, ziclo lauren...@gmail.com wrote: My

Re: [symfony-users] Re: Doctrine Pager max per page problem

2010-08-27 Thread Gustavo Adrian
Could you show us your action's code? On Fri, Aug 27, 2010 at 12:11 PM, ziclo lauren...@gmail.com wrote: More explanation about this issue : If the number of objects returned is 10 then objects are displayed. If number of objects returned 10 then nothing is displayed. I think there is a

[symfony-users] Re: Doctrine Query Cache and Symfony Pagers

2010-08-23 Thread Lea Haensenberger
No one having the same problem? Else I just have to turn off the caching for those queries, which is not so nice... On Aug 19, 5:05 pm, Lea Haensenberger baerne...@gmail.com wrote: Hi all, I'm having trouble with thedoctrinequery cache in combination with pagers. I have a query with some

[symfony-users] Re: Doctrine/MySQL: double up of id index

2010-08-23 Thread pghoratiu
Post the schema you use. Usually a PK ID is autogenerated for a given table if none was specified. gabriel On Aug 24, 1:52 am, Jochen Daum jdau...@gmail.com wrote: Hi, this may sound quite minor, but I'm just getting into Symfony and am interested in some of the details. When I run

Re: [symfony-users] Re: Doctrine/MySQL: double up of id index

2010-08-23 Thread Jochen Daum
Hi, On Tue, Aug 24, 2010 at 11:08 AM, pghoratiu pghora...@gmail.com wrote: this may sound quite minor, but I'm just getting into Symfony and am interested in some of the details. When I run symfony doctrine:insert-sql, the tables created always have a duplicate index, one called PRIMARY and

[symfony-users] Re: Doctrine : many to many with refclass

2010-08-21 Thread Ettore
I don't know if this can solve your problem, anyway have a look at http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/en#relationships:join-table-associations With user-Permissions you should get a Doctrine_Collection of Doctrine_Records . Creating a new tuple shuld be

Re: [symfony-users] Re: Doctrine : many to many with refclass

2010-08-21 Thread Sebastien Armand [Pink]
If you change your UserPermission definition to this: UserPermission: columns: user_id: type: integer primary: true permission_id: type: integer primary: true relations: User: foreignAlias: UserPermissions Permission: Then you will be able to use:

[symfony-users] Re: Doctrine tutorial, Day 12 - Cannot see is_activated and expires_at in Admin section of the Job Form page.

2010-08-18 Thread Salsero
Are they disabled somewhere? Do some configuration override the generator.yml? I refactor this question :-D I can answer myself.. I created the BackendJobeetJobForm... BUT: the fileds do not show up yet. I also launched symfony cache:clear but maybe it is not the right clearing cache

[symfony-users] Re: Doctrine Pager max per page problem

2010-08-06 Thread ziclo
My symfony version : 1.4.1 with doctrine On 6 août, 14:57, ziclo lauren...@gmail.com wrote: Hi everybody ! On the frontend i have a module called articles which is composed by a list of results. I use doctrine pager like the one in the admin backend. I have set up a max number of rows for

[symfony-users] Re: Doctrine Admin Generator

2010-07-20 Thread Tom Ptacnik
If you haven't to much credentials (groups..), you can create one form for admin and the second for normal user, they show the form by the credential of the user. On 14 čnc, 23:49, galileo galileo...@gmail.com wrote: You have misunderstand me :) i need display form fields only for those users

[symfony-users] Re: Doctrine ORM Class not a valid entity or mapped super class Error

2010-07-18 Thread Aaron DM
I figured out what was the cause of this problem, it was the opcode cacher was using, eAcclerator on Windows. It wasn't playing well with Doctrine - I got rid of it, replaced it with APC and all's fine now! Thanks On Jul 16, 6:30 pm, AMailer amai...@gmail.com wrote: Hey, Any idea why I would

[symfony-users] Re: Doctrine Commands not loaded

2010-07-15 Thread gordonslondon
problem found, have to update some files path after some namespace changes in PR3 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: Doctrine Admin Generator

2010-07-14 Thread pghoratiu
AFAIK you can not specify security settings in generator.yml only in config/security.yml There you have to specify the action name and the credentials required to access the action, see more info here: http://www.symfony-project.org/reference/1_4/en/08-Security gabriel On Jul 14, 11:58 pm,

[symfony-users] Re: Doctrine Admin Generator

2010-07-14 Thread galileo
You have misunderstand me :) i need display form fields only for those users that have needed credentials not the whole actions :) for you knowladge it is possible to define the actions credentials in the generator.yml :P it is generator: class: sfDoctrineGenerator param: model_class:

[symfony-users] Re: Doctrine admin generator and parameters to partial

2010-07-03 Thread Tom Ptacnik
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_partials ?php include_partial('mypartial', array('mytotal' = $total)) ? On 1 čnc, 15:04, Guill Lo guill.b...@gmail.com wrote: Hi! I've got a partial that I'm sharing over different modules to show a photo. I

[symfony-users] Re: Doctrine fails on insert new value

2010-06-25 Thread Tom Ptacnik
Try to google it. I'm sure you will find some solution. I found this: http://trac.doctrine-project.org/ticket/568 http://trac.symfony-project.org/ticket/3831 On 22 čvn, 15:27, Marxy oleha.ma...@gmail.com wrote: Hello! I got this error while added new value on standrd form generated by

[symfony-users] Re: Doctrine Query Left Join

2010-06-25 Thread Tom Ptacnik
What about $this-nodes = Doctrine::getTable('ElementNode') -createQuery('n1') -select('n1.*, n2.*') -leftJoin('ElementNode n2 ON n1.id = n2.nodeSubnodeOf') -execute(); On 25 čvn, 14:35, Jérémie jeremie.symf...@gmail.com wrote: Hi, I have this mysql query : SELECT n1.*, n2.* FROM ElementNode

[symfony-users] Re: Doctrine: strange charset problem on saving data to MySQL database

2010-06-25 Thread Kristóf
Ozzy u are right! I had exatly the same problem, (but with user input with a form) and just simply adding meta http-equiv=Content-Type content=text/html; charset=UTF-8;charset=utf-8 / to the header of the page solved the problem. Thanks again! On Apr 29, 2:09 am, Ozzy oye...@gmail.com

[symfony-users] Re: Doctrine Query Left Join

2010-06-25 Thread Svetoslav Shterev
This is simply not how doctrine relations work. Read the doctrine documentation on how to define models and relations, then try again. On Jun 25, 7:22 pm, Tom Ptacnik to...@tomor.cz wrote: What about $this-nodes = Doctrine::getTable('ElementNode') -createQuery('n1') -select('n1.*, n2.*')

[symfony-users] Re: Doctrine fails on insert new value

2010-06-24 Thread Tom Ptacnik
Which type of database do you use? On 22 čvn, 15:27, Marxy oleha.ma...@gmail.com wrote: Hello! I got this error while added new value on standrd form generated by default. execute : SELECT r.sprint_id AS r__sprint_id, r.sprint_name AS r__sprint_name, r.sprint_start AS r__sprint_start,

[symfony-users] Re: Doctrine schema: two realtionships between two tables

2010-06-24 Thread Tom Ptacnik
I would create an attribute in the GalleryPicture table preview { type: boolean } then I would create a method for retrieving this preview_image - getPreviewImage() in the Gallery model class .. this method wil call a method from GalleryPictureTable.class.php - findPreviewImage($galleryId) body

[symfony-users] Re: Doctrine fails on insert new value

2010-06-24 Thread Marxy
PostgreSQL -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To

[symfony-users] Re: Doctrine schema: two realtionships between two tables

2010-06-22 Thread rob
If you are using propel you can achieve it this way (I don't know if it'll work for Doctrine, I have never used it for any project): Gallery: columns: name: { type: string(255), notnull: true } preview_image_id: { type: integer, foreignTable: GalleryPicture, foreignReference: id }

Re: [symfony-users] Re: Doctrine+EmbededForms+Save

2010-06-21 Thread jota
Maybe you can use hidden fields, but I think it can have security lacks, a user could modifie the values with firebug for example. The better solution would be, unset those fields in the form and override the save method of the model to autoset the values. To unset the fields in the form put

[symfony-users] Re: Doctrine+EmbededForms+Save

2010-06-21 Thread B.O.G
Happily i could do this: protected function processForm(sfWebRequest $request, sfForm $form) { //$form-bind($request-getParameter($form-getName()), $request- getFiles($form-getName())); $campos = $request-getParameter($form-getName()); $campos['user_id'] =

[symfony-users] Re: Doctrine many to many relation problem

2010-06-14 Thread Tom Ptacnik
I think it's because different integer types... they must be the same when you want to create relation user_id: type: integer(5) ... check which type is on the other side. On 14 čvn, 12:00, Jon jon...@gmail.com wrote: Hi, I have a problem with de many to many relations in doctrine. I

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

2010-05-20 Thread Swanand Pagnis
What about 1.0? On Wed, May 19, 2010 at 4:23 AM, Alessandro Massignan ff...@gmail.comwrote: Hi, Doctrine documentation is available (they just change the link)... You could find it at: * http://www.doctrine-project.org/projects/orm for both 1.2 and 2.0: *

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

2010-05-18 Thread Jared
Doesn't look like any of the old URLs are working. Google doctrine documentation: The first link loads a blank page: doctrine-project dot org slash documentation as does every other google search (so far that I've seen) for something in the doctrine documentation, e.g. doctrine dql

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

2010-05-18 Thread Alessandro Massignan
Hi, Doctrine documentation is available (they just change the link)... You could find it at: * http://www.doctrine-project.org/projects/orm for both 1.2 and 2.0: * http://www.doctrine-project.org/projects/orm/1.2/docs/en * http://www.doctrine-project.org/projects/orm/2.0/docs/en have i miss

[symfony-users] Re: Doctrine Behavior example in symfony 1.4 book - CountCache

2010-05-16 Thread Tom Haskins-Vaughan
I have the same problem. I stumpled across this: http://forum.symfony-project.org/index.php?t=rviewgoto=90931th=24670#msg_90931 But I'd love to know if there was a cleaner way to do it. Any Doctrine developers out there got any suggestions? Thanks, Tom On Apr 5, 8:03 am, mstralka

[symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-12 Thread grahamj42
Yes, although it isn't the current version. None of the examples really helped. Although the 'blogpost' example has the same structure, the fact that the 'row keys' and values of 'name' in the 'tags' data are identical conceals which is being referenced. With some more reflection, it's the 'row'

Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
Try this: WttListWtt: pc-rail-barnham-1930-weekday: WttlistBox: pc-rail-barnham period: 1930 MF year: 1930 On Mon, May 10, 2010 at 5:32 PM, grahamj42 graham...@orange.fr wrote: During my tests, I specified all the attributes of the relations, although I know I don't need to be so

[symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread grahamj42
Tom, Thanks, that fixed the key error. I had to change the date value to '1930-01-01' (including the quotes) and then it loaded. This is an area that really needs documenting; I would never have thought to concatenate the keys at the two levels above, and the code is pretty opaque. The aim of

Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
It's not really a case of concatenating. It's just a case of using the key of the parent object. It could be anything really.The following would work too: WttlistBox: no_particular_key: name: Barnham WttlistSimulation: pc-rail simsig-bristol: name: Bristol WttlistSimulation: simsig

[symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread grahamj42
Ah, when I saw 'invalid row key' in the error message, I immediately thought of the primary key of the table, rather than the fixture tag. Another issue stemming from lack of documentation. Thanks, again. On May 11, 4:45 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: It's not really

Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
Did you try the symfony + Doctrine book? http://www.symfony-project.org/doctrine/1_2/en/05-Data-Fixtures On Tue, May 11, 2010 at 12:43 PM, grahamj42 graham...@orange.fr wrote: Ah, when I saw 'invalid row key' in the error message, I immediately thought of the primary key of the table, rather

[symfony-users] Re: Doctrine insert instead of replace

2010-05-10 Thread Sela
i think i found the problem, so plz don't answer i'll write my findings a bit later. On May 11, 1:23 am, Sela tzi...@gmail.com wrote: i develop on a Mac with MAMP and deployed my app to ubuntu server with the deployment tool of symfony. there's something quite weird happening, form is insert

[symfony-users] Re: doctrine schema problem

2010-05-05 Thread Andz
Please, disregard. On May 5, 6:04 pm, Andz andris.ve...@gmail.com wrote: please, tell me what is causing error message: {Invalid schema element named id at path Manufacturer} after issuing symfony doctrine:generate-migrations-diff command here is my schema http://pastie.org/946809 _ _ _

[symfony-users] Re: doctrine mysql driver

2010-05-04 Thread fRAnKEnSTEin
Did you ran check_configuration.php using a browser or using a terminal window? Remember that the PHP program that the browser uses may differ from the one that the terminal uses. So maybe you are getting this error because you are seeing the configuration of the wrong PHP. Run

  1   2   3   4   >