I am using symfony 1.4.12 with admin generator
and ahDoctrineEasyEmbeddedRelationsPlugin
with schema below:
Client:
actAs:
Timestampable:
Sluggable:
unique: true
fields: [name]
canUpdate: true
tableName: Clients
options:
charset: utf8
columns:
id:
I have loaded a MySQL table then dumped it for creating a fixture file
and one of the fields is defined as a string, but it can have
characters and numbers. When it is dumped to yaml, the data that has
the characters and numbers are not being put in quotations, while the
data with all numbers
oh, found out ...for Doctrine 2.1 even foreign keys as primary keys are
supported.
2011/4/25 Максим Воробей neb...@gmail.com
I follow manual at
http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/composite-primary-keys.html#identity-through-foreign-entities
Yes the yaml specifies a primary key and the ddl being generated also
specifies one. As a matter of fact the real table that I am trying to unload
and load has both a primary and foreign key.
The test table is just a re-creation of the problem. See ddl below:
CREATE TABLE testtable
(
I'm sure this is a really really stupid question but I can't seem to
find a clean way to return a JSON object, i.e. by not calling a
controller and just returning the result of json_encode. This was easy
is Symfony 1.x but I have no idea how to do it in Symfony2. Any body
know how to do this??
I
Hello, before all sorry for my english.
Ok, im doing a application with netbeans like ide ,postgres database
and the 1.4 version of Symfony over ubuntu. My problem appear when i
try to make data-load, the console show me exactly this
SQLSTATE[42P01]: Undefined table: 7 ERROR: no existe la
I follow manual at
http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/composite-primary-keys.html#identity-through-foreign-entities
http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/composite-primary-keys.html#identity-through-foreign-entitiesand,
as you can see, i also added a
Hi all,
I'm trying to follow the tutorial to learn how works symfony.
I'm currently at the step 3, and instead of only copy-paste the code,
I also create a second project in parralel to reproduce what I'm
learning.
But, I'm encountering an issue when using the data-load doctrine after
filling my
I'm looking for the right way to use my own UrlMatcher and
PhpMatcherDumper
i cant redefine configuration variables without editing the source
code
router.options.matcher_base_class
router.options.matcher_class
router.options.matcher_dumper_class
I want to use ut8-compatible routes and urldecode
Thanks David...
I'll check it out and I'll post if I found a clever workaround for this.
Peace...
On Mon, Apr 25, 2011 at 12:50 PM, David Buchmann david.buchm...@liip.chwrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hello mauricio,
i found no bullet proof thing to control it in
No, you have te create your own Group Entity, like
MyBundle\Entity\MyGroup. If you create this Entity with the Group name
it will cause an mysql error because the group word is reserved.
If you want to use groups you have to create that entity like says in the
documentation and make the relations
check
github.com/cordoval/Memorize-Scripture-2 example
On Sun, Apr 24, 2011 at 7:57 AM, stickaforkinme sebdang...@gmail.com wrote:
I'm sure this is a really really stupid question but I can't seem to
find a clean way to return a JSON object, i.e. by not calling a
controller and just returning
On 4/24/11 2:57 PM, stickaforkinme wrote:
I'm sure this is a really really stupid question but I can't seem to
find a clean way to return a JSON object, i.e. by not calling a
controller and just returning the result of json_encode. This was easy
is Symfony 1.x but I have no idea how to do it in
This has been fixed now.
--
Fabien Potencier
Sensio CEO - Symfony lead developer
sensiolabs.com | symfony.com | fabien.potencier.org
Tél: +33 1 40 99 80 80
On 4/25/11 4:19 PM, codecowboy wrote:
I have installed Symfony2 PR12 which displays the welcome page and
demo application. However, when I
On 4/25/11 10:11 PM, Sebastian Göttschkes wrote:
Hi,
I'm reading the docs about Testing right now, and I got confused over
the usage of count() and -count():
http://symfony.com/doc/2.0/book/testing.html
Under the headline Usefull Assertions it says in the first example to
use
I loaded vendors.sh,
then submit The options page_id do not exist.
--
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,
fixed now.
--
Fabien Potencier
Sensio CEO - Symfony lead developer
sensiolabs.com | symfony.com | fabien.potencier.org
Tél: +33 1 40 99 80 80
On 4/26/11 10:32 AM, Erkhembayar Gantulga wrote:
I loaded vendors.sh,
then submit The options page_id do not exist.
--
If you want to report a
It works, Thanks
--
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
Thanks.
I figured there must be something simple...
I'll give that a try tonight.
Marti.
On Tue, Apr 26, 2011 at 1:02 AM, Roman Sichny unforgiven...@gmail.comwrote:
if ($user instanceOf sfGuardSecurityUser)
...
--
If you want to report a vulnerability issue on symfony, please send it to
Hi,
While updating to the new system, I got some problems.
In twig, how can I test if a field has an error?
Is there a replacement to the data option with choice field type? It
allowed to preset data.
Thanks,
--
Vincent
--
If you want to report a vulnerability issue on symfony, please send
On Tue, Apr 26, 2011 at 3:26 PM, Vincent Lechemin
vincent.leche...@gmail.com wrote:
Is there a replacement to the data option with choice field type? It
allowed to preset data.
Correction, the data option does exist, but it is not shown in the template?
--
Vincent Lechemin
--
If you want to
Hi Vincent,
2011/4/26 Vincent Lechemin vincent.leche...@gmail.com:
In twig, how can I test if a field has an error?
{% if form.field.errors|length 0 %}
Is there a replacement to the data option with choice field type? It
allowed to preset data.
You have to set the correct data in your
And as we started about choice field, how to add @empty value into the
entity type choice list.
I need to be able to set the relation to NULL pointed.
Also, is it possible to render field manually, like:
input type=text name=correct[path] value={{ formView.field }}
Will the form handle the data
2011/4/26 Gediminas Morkevicius gediminas.morkevic...@gmail.com:
And as we started about choice field, how to add @empty value into the
entity type choice list.
I need to be able to set the relation to NULL pointed.
Set the 'required' option to false. Additionally you can overwrite the
label
{% if form.field.errors|length 0 %}
When I do that, I get Method errors for object
Symfony\Component\Form\FormView does not exist.
You have to set the correct data in your *object* which is used to
populate the form.
$object-setProperty('default');
or
private $property = 'default';
I'm
Great, thanks @bernhard great work, at the start it seemed very confusing,
maybe documentation will
help to understand it better for the begginers.
On Tue, Apr 26, 2011 at 3:58 PM, Bernhard Schussek bschus...@gmail.comwrote:
2011/4/26 Gediminas Morkevicius gediminas.morkevic...@gmail.com:
And
2011/4/26 Vincent Lechemin vincent.leche...@gmail.com:
{% if form.field.errors|length 0 %}
When I do that, I get Method errors for object
Symfony\Component\Form\FormView does not exist.
Oops, form.vars.errors, form.field.vars.errors etc. it has to be (like above).
I'm not using any object
Hi all,
I didn't manage to find an easy way to retrieve the current matched route.
I'm from an onCoreController listener, but the question is for everywhere
else.
The only way I found is that one :
$this-router-getRouteCollection()-get($event-getRequest()-attributes-get('_route'))
So I pass
On 4/26/11 4:47 PM, winzou wrote:
Hi all,
I didn't manage to find an easy way to retrieve the current matched
route. I'm from an onCoreController listener, but the question is for
everywhere else.
The only way I found is that one :
hello
to download a file i create a function execute dowload which redirect me to
the upload folder /filename,
only authentificated user can dowload the file i used the function
isAuthentificated all is fine but is not secure if a user change manually
the url and he isn't authentificated he can
sf2 PR12
I download a superfeedr.php file which has the
class Superfeedr
{}
1.then I copy the superfeedr.php to /vendor/superfeedr/lib/
2.insert a namespace Superfeedr before the line define the class
Superfeedr.
3. add a line in the app/autoload.php
$loader-registerNamespaces(array(
Hi there,
I've been refactoring our app to conform most recent (and excellent)
Form component changes. Before it was possible to override $form-
validate() to do some custom validation, however now it seems to be
obsolete. I've moved validation constraints into the data object by
defining a
My aim is to change the RequestFormat if there is a P-JAX header defined,
but only if the route requirement of _format (or _method or whatever) allows
it.
In other words, I want the route config file to decide if I can render a
different template for my action ( via
On Tue, Apr 26, 2011 at 4:22 PM, Bernhard Schussek bschus...@gmail.com wrote:
How do you plan to validate your form then? Usually this is done using
the validation constraints in the underlying object. If you want to
work on plain arrays, this is possible but not documented yet and
slightly
Il giorno martedì 26 aprile 2011 17:27:57 UTC+2, Ville Mattila ha scritto:
Hi there,
I've been refactoring our app to conform most recent (and excellent)
Form component changes. Before it was possible to override $form-
validate() to do some custom validation, however now it seems to be
In order to avoid unwanted downloads you have to put your file outside your
web dir (maybe you can store files in data/). This will prevent direct
download (apache will not able to reach your files).
The next step is to implement an action that read and serve the file, only
fot authorized
It is probably something related to your schema.yml or your fixtures files,
can you show them (use https://gist.github.com)?
Did you build your model before loading data ?
Cheers
Francesco
---
Francesco Tassi
More about me http://flavors.me/ftassi
--
If you want to report a vulnerability
Il giorno lunedì 25 aprile 2011 02:24:54 UTC+2, David ha scritto:
Has
anyone found a work around for such a situation or is there a bug in
the cli doctrine:dump-data? My definitions are below and any help
would be appreciated. Thanks.
Can you post a mysqldump of the table so I can
Hi everybody.
I've been searching how to test methods related to database functionality.
I've found nothing on Doctrine 2 docs,
nor PHPUnit docs, just some PDO basics.
Can someone please point me the right direction???
I appreciate any kind of help!
Regards!
--
If you want to report a
Yeah worked that one out after posting on here... although prefered
the old renderText method of sfActions in sf 1.x as this was a bit
cleaner. :-) Creating a new response object just seems an odd way to
do it as surly you already have a response object on the go.
On Apr 26, 8:11 am, Fabien
There is no response object 'on the go'. The controller action's
responsibility is to create the response.
t
On Wed, Apr 27, 2011 at 07:59, stickaforkinme sebdang...@gmail.com wrote:
Yeah worked that one out after posting on here... although prefered
the old renderText method of sfActions in
Yes, I built the model before loading. I was also able to replicate
the errors in the doctrine sandbox. It looks like the real problem is
that the doctrine data dump is not correctly adding quotes to the
string fields.
I have loaded to gist see: https://gist.github.com/943444
Thanks for taking
42 matches
Mail list logo