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
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
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
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
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
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
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
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
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,
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
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
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 ...
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
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
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
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,
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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,
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
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
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
?
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
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
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
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:
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
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
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 =
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,
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
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 ?
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.
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'
=
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.,
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
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-
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 [
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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,
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:
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
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
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
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
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.*')
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,
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
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
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 }
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
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'] =
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
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:
*
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
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
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
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'
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
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
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
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
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
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
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
_ _ _
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 - 100 of 362 matches
Mail list logo