This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Symfony 2 -> Doc. -> Book - mistake

About symfony tutorials, symfony book and API documentation.

Symfony 2 -> Doc. -> Book - mistake

by Ravi » Fri Jun 10, 2011 1:23 pm

In "Databases and Doctrine" chapter:

Is:
Code: Select all
For example, if you're persist 100 Product objects and then call persist(), Doctrine will create a single prepared statement and re-use it for each insert.


Should be:
Code: Select all
For example, if you're persist 100 Product objects and then call flush(), Doctrine will create a single prepared statement and re-use it for each insert.

( persist() -> flush() )

Pozdro.
Ravi
Junior Member
 
Posts: 10
Joined: Tue Feb 10, 2009 1:15 pm
Location: Poland

Re: Symfony 2 -> Doc. -> Book - mistake

by nicolasmoreira » Thu Jun 16, 2011 9:05 pm

I find it in
Code: Select all
<img src="{{ asset('bundles/acmedemo/images/welcome-configure.gif') }}" alt="Configure your appication" />
replace by "application"

Just for make a better symfony2 :nod:
nicolasmoreira
Junior Member
 
Posts: 1
Joined: Thu Jun 16, 2011 9:01 pm

Re: Symfony 2 -> Doc. -> Book - mistake

by jalso » Thu Aug 25, 2011 2:45 pm

in page: http://symfony.com/doc/current/referenc ... hoice.html

is:
Code: Select all
$metadata->addPropertyConstraint('gender', new Choice(
            'choices' => array('male', 'female'),
            'message' => 'Choose a valid gender',
        ));


should be:
Code: Select all
$metadata->addPropertyConstraint('gender', new Choice(array(
            'choices' => array('male', 'female'),
            'message' => 'Choose a valid gender',
        )));
jalso
Junior Member
 
Posts: 1
Joined: Thu Aug 25, 2011 2:41 pm

Re: Symfony 2 -> Doc. -> Book - mistake

by yoav » Thu Feb 16, 2012 1:25 pm

Routing -> Generating URLs from a template -> Absolute URLs

The twig sample is missing , true
yoav
Junior Member
 
Posts: 2
Joined: Mon Jul 14, 2008 4:35 pm