Hi !
I am trying the database functionalities in PR7.
I am experiencing a strange ORM behavior.
Here is my code :
[code]
$qb = $this->get('doctrine.orm.entity_manager')->createQueryBuilder();
$aGalleries = $qb->select('g')->from('SWMainBundle:Gallery', 'g')-
>where($qb->expr()->eq('g.active', 1))
On 17 mar, 22:49, Christophe COEVOET wrote:
> Le 17/03/2011 18:01, Lideln a crit :> Hi,
>
> > I'm trying to use Twig, and I would like to do a simple thing :
> > Display the parameters.title value defined in my config.yml file.
>
> > I found how to display ht
Hi,
First of all you need to configure your app properly (config.yml), for
example :
doctrine:
dbal:
driver: %database_driver%
host: %database_host%
dbname: %database_name%
user: %database_user%
passwor
Hi,
I'm trying to use Twig, and I would like to do a simple thing :
Display the parameters.title value defined in my config.yml file.
I found how to display http query parameters, but not config params
(the class GlobalVariables does not contain a "getParameters"
function).
Should I add a "getCon
ish?
>
>
>
> On Mon, Mar 14, 2011 at 03:58, Lideln wrote:
> > Nobody ? The only other case I found on google was spanish and I
> > didn't understand a word of it :)
>
> > Don't tell me I'm the only one to have the PR7 not working once
> > do
ing.
Thanks in advance,
On 11 mar, 05:30, Lideln wrote:
> Hi,
>
> I downloaded the PR7, and got a few fatal errors.
>
> On my project first, I updated the files from PR6 and I "think" I did
> not forget anything, but I get that error :
> Fatal error: Uncaught excep
Hi,
I downloaded the PR7, and got a few fatal errors.
On my project first, I updated the files from PR6 and I "think" I did
not forget anything, but I get that error :
Fatal error: Uncaught exception 'InvalidArgumentException' with
message '[ERROR 1845] Element '{http://symfony.com/schema/dic/ser
Hi there !
Ok I succeeded in creating a Repository using your help, and using the
"annotation" type, and modifying the Entities by hand to prepend with
"orm:".
But it is not convenient, and moreover the generated entities are not
complete and are overwrited each time (and not merged, so I lose my
Hi Christophe,
On 23 fév, 18:22, stof wrote:
> On Wed, 23 Feb 2011 09:08:33 -0800 (PST), Lideln wrote:
> > Hi Carlos,
>
> > Thank you for the answer !
> > This is a good idea to use options to pass the EM, I will follow your
> > advice !
>
> Using an option i
Up !
This is quite blocking for me not to have the repositories.
Can please someone point me to the right direction ? I really tried
many and many configurations... Maybe I just missed the one that
works.
Thanks a lot,
On 18 fév, 00:01, Lideln wrote:
> Hi,
>
> I am trying to gen
onstructor (not
> proved)
>
> $em = $this->getOption('em');
> //...
> }
>
> }
>
> Hope it helps!!
>
> On Feb 20, 10:16 pm, Lideln wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I'm us
Hi,
I'm using the EntityChoiceField, and I encountered two issues :
1) when modifying the querybuilder, the value in the html option tag
is not the one corresponding to the label of the option tag
2) I only get one single option tag in my select, whereas I have
multiple rows in my db table, even w
I digged a bit and got those results :
When using type = raw, and providing an associative array, it works !
(but not for validation)
When using type = string, I have to modify PropertyPath.php in
function readPropertyPath() :
else {
if (is_string($objectOrArray))
Hi Bernhard,
Ok I'll try that, but in that case that does not explain why it
complains when I use the type=string parameter ?
Is there a fully functionnal example of the DateField and Date()
validator thing ?
On 18 fév, 14:22, Bernhard Schussek wrote:
> Hi Lideln,
>
> The @D
Hi,
I am trying to generate the repositories :
php app/console doctrine:generate:repositories MainBundle
But what I get is :
> SKIP no custom repository for Ratethestar\MainBundle\Entity\Entry
> SKIP no custom repository for Ratethestar\MainBundle\Entity\Member
> SKIP no custom repository f
Hi there,
I added a DateField to my form.
$this->add(new DateField('dateBirth', array('years' => range(date('Y')
- 100, date('Y') - 17;
1) If I do not specify the type (which is DateTime by default), I get
this error when submitting :
Expected argument of type string, object given (DateValida
Thank you Christophe, I tried to generate the repositories before but
it complained about "nothing to do", therefore I worked on something
else.
I will try what you told me tonight. Thank you !
On 17 fév, 15:22, Christophe COEVOET wrote:
> Le 16/02/2011 23:00, Lideln a crit :>
Hi !
I am experimenting the PR6, but I could not find how to access things
from Entity just as you would do from Controller ($this-
>get('database_connection') or $this-
>get('doctrine.orm.entity_manager') and so on).
It would be nice to place all "static" database queries inside the
Entities.
A
Hi !
I fixed the issue by removing my lame ctor and passing the name
parameter to the create() factory instead as advised.
Thank you all !
On 16 fév, 10:51, Bernhard Schussek wrote:
> Oops, parentheses I mean.
>
> /** @validation:NotNull */
> and
> /** @validation:NotNull() */
>
> both are val
Hi,
I did not understand the "parent" thing ?
Is there something wrong with my code ? I hope so, otherwise I would
not understand why I got this error :-/
On 16 fév, 00:27, Bernhard Schussek wrote:
> > Correct syntax for annotation-validators is to use parents in the end:
> > email(), NotBlank()
On 16 fév, 00:27, Bernhard Schussek wrote:
> > Correct syntax for annotation-validators is to use parents in the end:
> > email(), NotBlank()...
>
> This is not true. You can leave away the parents just as well.
>
> Bernhard
Sorry what do you guys mean by parents ?
Is there something wrong with
On 16 fév, 00:02, Christophe COEVOET wrote:
> Le 15/02/2011 23:57, Lideln a crit :
>
> > Since I cannot add new answers to the topic I created earlier (why
> > that ?), I create a new one here with additionnal info.
>
> > As I said, I followed the official tutori
Since I cannot add new answers to the topic I created earlier (why
that ?), I create a new one here with additionnal info.
As I said, I followed the official tutorial to create a RegisterForm
and using it to register new members.
But I got stuck at the validation, because I got the error :
The opt
Hi Nikita,
Thanks for the answer.
I had already discovered the form name parameter. Only I fixed it by
creating a ctor in my form and calling
parent::__construct('register').
The topic you kindly gave me did not help. I still have the " The
option "validator" is required for validating " error.
J
veral questions
regarding sf2 but form validation will be enough for now ^^)
Kind regards,
Lideln
On 15 fév, 17:23, Nikita Korotaev wrote:
> There is no such thing like EmailField at the moment, I don't know why it's
> in docs. You should use textField and set Email validator inst
nfig.yml
Thank you all (if you have a link to more up to date tutorials, I
would love to have it, thank you :) )
Lideln
--
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
#x27;m glad I can thank you in person for all the amazing work you did
with Symfony (among other things).
Thank you !
It's true that my small feedback was a point of detail compared to the
complexity of the framework.
Thanks from Paris,
Renaud
On 1 déc, 07:52, Fabien Potencier wrote:
t; behaviors with your own classes extending the Symfony2 classes and do it
> like you want.
> Although don't worry, really the default way is better than oneself think in
> the beginning!
>
> Pablo
>
> On Mon, Nov 29, 2010 at 7:22 PM, Lideln wrote:
> > Hi there,
>
>
Hi there,
I just read the entire Symfony 2 quick tour. I found many useful and
smart things, which are great !
But I also wondered about a few (tiny) things, that are more about
ease of use.
Hope I get an answer here :)
1) I'm sorry that we lost the ability to "return nothing" in the
action (whic
29 matches
Mail list logo