I think, I had a similar problem.
Try this in the Profile constructor:
public function __construct() {
$this-profileAddress = new
\Doctrine\Common\Collections\ArrayCollection();
}
--
If you want to report a vulnerability issue on symfony, please send it to
security at
Hi,
I'm using the beta4, with MAMP on Apple Mac.
I have this error on launching the doctrine:schema:update command :
Warning: PDO::__construct(): [2002] No such file or directory (trying to
connect via unix:///var/mysql/mysql.sock) in
This should be fixed, see
https://github.com/sonata-project/AdminBundle/issues/133
On Wed, Jun 15, 2011 at 9:24 AM, mrdev bbergst...@gmail.com wrote:
Hi,
i'm stuck for a while now on this.
the admin works for my user entity but doesn't with my others entity.
here's the error i get :
Thank you for your responses.
I use the annotation method of Doctrine 2 for my entities.
I've searched a little on the doctrine 2 documentation and the Single Table
Inheritance is perfect in my case ^^
Thank you yet ;)
--
If you want to report a vulnerability issue on symfony, please send it to
Hi,
The application I'm working on has three different databases.
These databases have couple identical table names (but different columns) so I
would like to generate entity classes like:
MyBundle/Entity/DB1/User.php
MyBundle/Entity/DB2/User.php
MyBundle/Entity/DB3/User.php
Instead of:
hello,
you have the FOSFacebookBundle working with facebook sdk 3.0 ??
i updated the sdk but i receive this error all time : ErrorException:
Notice: A session had already been started - ignoring session_start() in
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
Hi,
I'm trying to handle multiple file uploads with a binded array.
// FilesType
$builder
-add('photo1', 'file', array(type' = 'file'))
-add('photo2', 'file', array('type' = 'file'))
-add('photo3', 'file', array('type' = 'file'))
;
// controller
$files = array(
'photo1' = null,
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
Wow, awesome!
I won't be able to try implementing it untill 2night but the docs are
clear, 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
I'm in the progress of making FOSUserBundle compatible with propel
(using PropelBundle), but i encountered an issue that i think hard to
resolve.
This is because the different signature of equals function between
UserInterface (Symfony\Component\Security\Core\User\UserInterface) and
User object
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
Le 15/06/2011 14:09, nibsirahsieu a écrit :
I'm in the progress of making FOSUserBundle compatible with propel
(using PropelBundle), but i encountered an issue that i think hard to
resolve.
This is because the different signature of equals function between
UserInterface
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 11:32, symfonyMan a écrit :
hello,
you have the FOSFacebookBundle working with facebook sdk 3.0 ??
i updated the sdk but i receive this error all time : ErrorException:
Notice: A session had already been started - ignoring session_start()
in
Le 15/06/2011 11:29, con a écrit :
I'm pretty sure it is somehow possible to change the location of the
cache log directory in sf2.. but I didn't find anything on the docs..
http://symfony.com/doc/current/book/http_cache.html#index-15 :/
btw, is it still possible to use php in yml files?
Hi folks,
I am using the symfony 1.4,
Is there any way to get the form field value before binding the form?
What is the best way to edit the form without passing the ID parameter
in URL?
Thanks
-Imran
--
If you want to report a vulnerability issue on symfony, please send it to
security
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
thank you :)
--
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
Hi folks,
I am using symfony 1.4 (Doctrine).
I have been trying to find the form's object while editing the form.
I have been using custom routing for form submission url.
Please look at the following case:
http://www.something/user/username/comment
In the above URL, user is module name,
Thank you for your answer. propel doesn't allow to define a *equal *function
in my object class.
Runtime Notice: Declaration of FOS\UserBundle\Model\Propel\User::equals()
should be compatible with that of BaseObject::equals() in
Hi,
You have to use a Proxy class that handles the real User Propel object
and implements the UserInterface.
This is pretty easy but you will have to override the part where the
user is retrieved to use your Proxy class instead of your Model class.
Regards,
William.
On 15 juin, 15:44,
Hello,
I customized choice_widget block by copying it from
div_layout.html.twig to my own template file and adding it under
twig/form/resources in config.yml. My customizations work fine when I
add a choice field with the form builder, but now country fields
are not rendered correctly (empty
Hello,
What is the recommended way to validate form fields that do not belong
to any entity? I don't see this documented anywhere.
For example:
$builder
-add('entity', new EntityType()) // validated by using constraints
set for Entity
-add('foo', 'text'); // how do you add constraints
My bad, forgot to add extends directive in my template.
On Jun 15, 6:13 pm, Rytis Daugirdas rytis.daugir...@gmail.com wrote:
Hello,
I customized choice_widget block by copying it from
div_layout.html.twig to my own template file and adding it under
twig/form/resources in config.yml. My
I'm waining for it too :)
On Jun 11, 2:00 pm, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
I'm working on updating the documentation to include an exmaple of a
fileuploadwith and without Doctrine.
It should be available on Monday.
Fabien
--
Fabien Potencier
Sensio CEO -
Hi all,
I was testing the security section from the current documentation but i ran
into some trouble.
http://symfony.com/doc/current/book/security.html
Beneath avoid common pitfalls
2. Be sure the login page isn't secure
I tried the describded pitfall
access_control:
- { path: ^/, roles:
Hello,
I have a little problem
I need use the iso-8859-1 charset in Symfony 2.
--
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
A pitty that nobody has an idea on this topic. It seems to be a difficult
topic, I also can't find a whole lot with Google.
Would this be completely have to be custom-made with Doctrine and sfGuard
for instance?
--
If you want to report a vulnerability issue on symfony, please send it to
Is it possible create validator dynamicly? Something like form builder
or other way?
$validator = $this-createValidatorBuilder($document)
Thanks,
Vadzim
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this
Is it working on BETA 3 ? Because, i use an embedded form, i bind the
request etc... and the IsValid return always FALSE.
On 14 juin, 07:55, Fabien Potencier fabien.potenc...@symfony-
project.com wrote:
On 6/11/11 12:24 PM, Ruben de Vries wrote:
Are there any bundles on github that
Hi Folks,
I'm having a problem when I create a relation between the tables. I
believe the problem occurs when the 'Entities' are generated.
Error: Class Espro\OrigensBundle\Entity\IeUnidade has no association
named EsproOrigensBundle:IeUnidade
Case someone has any idea and wish see the yml
Thanks to reply.
I do it :
{% stylesheets '@BundleCreator/Resources/Public/css/bundleCreator.css'
filter='cssrewrite' %}
link rel=stylesheet href={{ asset_url }} type=text/css
media=all /
{% endstylesheets %}
but it not works.
The url genrate is /Resources/Public/images/ok.gif but my image
When I try to connect to the SVN repository for branch 1.4.11 via
TortoiseSVN, I get prompted for a username/password. What are those
credentials?
Thanks.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message
Hi all,
First, thanks to the developers for this great plugin.
I have a possible suggestion regarding the image option, which can
be specified so that the datepicker button can be replaced with a
custom image. At the moment, one needs to pass the absolute URL to the
image (as far as I can tell).
You need added setter setComments() into your DemoUser model.
--
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
Guess mail2forum would be an interesting alternative because as far as i
know there is already a plugin for phpbb3. I however agree that the
community should not be split, at least not by creating 2 mailing lists.
More than that, if fabien thinks that this is the best way, we should be
supportive
Is was reading a bit on whether it is possible to have extra fields in
the 'middle' table in a many:many relationship when using the admin
generator.
I have found a few topics but the are all unanswered:
http://osdir.com/ml/symfony-users/2010-02/msg00189.html
Great hint, was looking waiting this. Thanks for sharing!
Will be some work to update all forms ... but happy that it works.
I'm highly interested in how to validate these fields. Will take a
look into this later :)
Thanks,
Lars
On Jun 12, 6:46 pm, Stephan Petzl stephan.pe...@gmail.com wrote:
I'm having the same problem, did you find how to solve it?
On Jun 2, 12:53 pm, dbenjamin bd.web...@gmail.com wrote:
Ok, i added the cssrewrite filter to my assets but i'm not sure how to use
it.
{% stylesheets filter='cssrewrite,?yui_css'
It would be nice to emulate similar functionality to rails in which
you can respond_with a collection or an object and the action will
detect what Content-Type it should respond with.
On May 12, 8:13 am, Christophe COEVOET s...@notk.org wrote:
Le 12/05/2011 14:04, Javier Garcia a crit :
On
is it working on BETA 3 ? In my case, $form-IsValid() is always false. I
use an embedded form.
--
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
How I can make required field validation only for create, and disable
it on update, for example when user register, field password should
not be null, but on update it should not be null only if user whant
update password?
--
If you want to report a vulnerability issue on symfony, please send it
Hello List,
I am new to symfony2 and I work on my first project with it.
It is great and the documentation helped a lot, but for a few days, I
have two problems I can't fix:
1) I have a table with settings. it consists of key-value-pairs and I
want to show the 20 rows on one page and make it
Type guessing in the standalone form component seems completely broken. I
registered a Doctrine form bridge which correctly gets a DoctrineOrmGuesser
instance. Form/FormFactory-loadGuesser() loops over the extensions and
calls getTypeGuesser(), which
Hi,
I don't know if is it, but I think the form of method call to create
the form is deprecated.
The current way to do it is :
$form = $this-get('form.factory')-create(new FormType());
if ($this-get('request')-getMethod() == 'POST') {
for example to show only the rows for pone numbers of a employee in a
relation where one employee has many pone numbers check this link, its
a pdf with a LOT of symfony tips.
check this http://www.slideshare.net/jcleveley/working-with-the-admin-generator
regards
yoan
--
If you want to report
Hi,
i'm stuck for a while now on this.
the admin works for my user entity but doesn't with my others entity.
here's the error i get :
[2/2] Twig_Error_Runtime: An exception has been thrown during the
rendering of a template (Route admin_mr_start_mrdiploma_create does
not exist.) in
Hello everybody,
I'm planning to use Symfony2 to create a REST API, dealing with data in
MongoDB and MySQL, with user quota (depending on the URL and its method).
I have several questions:
- what is the best strategy
- simple routing/controllers
- EverzetRestfulControllersBundle
In my twig extension I need to get access to other helpers or
extension (for example Assets (sfTemplateHelperAssets) or another twig
extension from some bundles)
I have service container in my twig extension.
Thanks!
--
If you want to report a vulnerability issue on symfony, please send it to
ohoh, my mind is too complicated !
thanks
2011/6/15 Thomas Rabaix thomas.rab...@gmail.com
This should be fixed, see
https://github.com/sonata-project/AdminBundle/issues/133
On Wed, Jun 15, 2011 at 9:24 AM, mrdev bbergst...@gmail.com wrote:
Hi,
i'm stuck for a while now on this.
the
I tried filter='cssrewrite', but still could not get the right path to
the images file in CSSand finally, i give up assetic when css file
include images path..
On Jun 12, 5:32 am, Kris Wallsmith kris.wallsm...@symfony-
project.com wrote:
You need to add the cssrewrite filter to your tag:
Hello, is there a way to set cookies when I am using the @Template
annotation of the FrameworkExtraBundle?
Without the template you could render the view by using $this-render() and
then you could modify the returned Response object. However with the
@Template() functionality you return an
I'm trying to implement a form to post - post_meta relationship. What
I want is to define attributes for the posts and the posts form
display all defined attributes in separate fields.
I used a entity field in the form of posts but what I want is not a
choice field. There is an example of
Le 15/06/2011 17:16, Thomas Parisot a écrit :
Hello everybody,
I'm planning to use Symfony2 to create a REST API, dealing with data
in MongoDB and MySQL, with user quota (depending on the URL and its
method).
I have several questions:
* what is the best strategy
o simple
This is a repost of a discussion that already exists, however no
solutions were offered. Here's another try!
The Context:
a) Add new tables via mysql
b) ./symfony doctrine:build-schema
c) ./symfony doctrine:build --all-classes --model --forms --filters
Item b) in the above list creates an
Le 15/06/2011 16:49, eric.malzone a écrit :
Hi,
I don't know if is it, but I think the form of method call to create
the form is deprecated.
The current way to do it is :
$form = $this-get('form.factory')-create(new FormType());
if ($this-get('request')-getMethod() == 'POST') {
Le 15/06/2011 09:24, mrdev a écrit :
Hi,
i'm stuck for a while now on this.
the admin works for my user entity but doesn't with my others entity.
here's the error i get :
[2/2] Twig_Error_Runtime: An exception has been thrown during the
rendering of a template (Route
Le 14/06/2011 22:15, Reideer a écrit :
Hello,
I have a little problem
I need use the iso-8859-1 charset in Symfony 2.
This has been fixed in master
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received
Hi, everyone
I built an choice field from entity, but I want to make one of the
options selected, is there any way to do that?
If I have php, sql, mysql which generated from category table,
How can I make sql option selected after I show the page? Do I miss
any method or setter? Or if I can
Le 14/06/2011 15:15, eric.malzone a écrit :
Hi Folks,
I'm having a problem when I create a relation between the tables. I
believe the problem occurs when the 'Entities' are generated.
Error: Class Espro\OrigensBundle\Entity\IeUnidade has no association
named EsproOrigensBundle:IeUnidade
Case
Hi,
I wish to know how i can execute some DQL(Doctrine Query Language)
from a unit test file.
I just want to have access to my Entity for test some function.
The unit test will be run with PHPUnit.
Big thanks for your help !
Waldo (Symfony beginner)
--
If you want to report a vulnerability
Gang
I know lots of people have had this problem based on the searches I
carried out this afternoon, but I still can't find a solution. I'm
using the latest stable release of Symfony 1.4.11 on Windows 7
Ultimate.
I have written the Schema.yml file based on the tutorial and it is
located in
Le 14/06/2011 14:40, Sagar Vadher a écrit :
After running the vendors script, the master branch is cloned.
However SF uses 3.0.x. I've manually checked out 3.0.x, but
subsequent updates switch it back to the master.
How do I ensure that 3.0.x is the branch that's used (I'm working from
Le 14/06/2011 16:30, Christophe Bord a écrit :
Hi all,
I was testing the security section from the current documentation but
i ran into some trouble.
http://symfony.com/doc/current/book/security.html
Beneath avoid common pitfalls
2. Be sure the login page isn't secure
I tried the
+1 vote towards giving the sf1.x people another mailing list but NOT THIS ONE
we sf2 guys would like to keep this thank you!
On Mon, Jun 13, 2011 at 8:47 AM, Insight Media Tech
culori.me...@gmail.com wrote:
Guess mail2forum would be an interesting alternative because as far as i
know there is
Thanks for these, though I'm trying to implement multiple files
upload: using a collection of a FileFormType that contains a file.
I am now stuck at the bindrequest step.
In my controller I loop through all the items in the ArrayCollection
and do $files[$i]-upload() to mimick what's in that
On Mon, Jun 13, 2011 at 9:47 AM, Insight Media Tech
culori.me...@gmail.comwrote:
. I however agree that the community should not be split, at least not by
creating 2 mailing lists.
The issue with this is that there are two distinct communities -- sf1.x and
sf2, and the vast majority of the
On Tue, Jun 14, 2011 at 12:52 PM, waldo2188 waldo2...@gmail.com wrote:
Hi,
I wish to know how i can execute some DQL(Doctrine Query Language)
from a unit test file.
I just want to have access to my Entity for test some function.
The unit test will be run with PHPUnit.
use
Hello,
I have a simple form with a few entity forms embedded into it.
Validation seems to work, but all errors are reported as global
(rendered via form_errors(form)). The same call for each field
(form_errors(field)) does not render any errors at all. I did not set
error_bubbling property
Yep, it's a simple shortcut, nothing to do with the issue i'm talking about.
Any idea about that ?
Benjamin.
2011/6/15 Christophe COEVOET s...@notk.org
Le 15/06/2011 16:49, eric.malzone a écrit :
Hi,
I don't know if is it, but I think the form of method call to create
the form is
No i did not.
I had to say to my webdesigner to use absolute paths into his CSS (for
instance : /bundles/mybundle/images/. created by assets:install
command)
That's a very bad practice and i'd love to do otherwise but i don't know how
to use Assetic to avoid that.
Kris ? Help :)
Benjamin.
[?] It is a so ellegant implementation; and callbacks are so usefull. I would
marry Fabien is he was a 'she' [?]
2011/6/15 Chris christophe.ben...@gmail.com
Thanks for these, though I'm trying to implement multiple files
upload: using a collection of a FileFormType that contains a file.
I am
Why when I asked same question no one could came up with a good answer like
this one? [?]
Thanks a lot. This will help me improve my current and first S2
production-meant app. [?]
2011/6/15 Jeremiah Dodds jeremiah.do...@gmail.com
On Tue, Jun 14, 2011 at 12:52 PM, waldo2188
HI *Imran*,
If you using default CRUD, There is line (!$form-getObject()-isNew() ?
'?id='.$form-getObject()-getId() : '') in _form.php partial. After submit
you can get id in action very simple. $request-getParameter('id');
That's it.
Erkhembayar Gantulga.
--
If you want to report a
You can pass object in routing.
for example:
comment:
url: /comment/:name/:date.:sf_format
class: sfDoctrineRoute
param: { module: comment, action: anyAction }
options: { model: YourClass, type: object }
In action :
you will get
$this-comment = $this-getRoute()-getObject();
Good
Hi everybody!
This might go in the Doctrine's mailing list, but knowing you all S2 people
are working with Doctrine 2, I'm feeling
lucky that you could help me out.
This is the kind of stuff I want to achieve:
DQL: delete VendorBundle:Photo p JOIN p.bedrooms bp JOIN bp.bedroom b where
b.id =
On 6/15/11 12:29 PM, dbenjamin wrote:
Hi,
I'm trying to handle multiple file uploads with a binded array.
// FilesType
$builder
-add('photo1', 'file', array(type' = 'file'))
-add('photo2', 'file', array('type' = 'file'))
-add('photo3', 'file', array('type' = 'file'))
;
// controller
$files =
79 matches
Mail list logo