Skip to content

Commit 40c0972

Browse files
committed
Merge branch '2.2' into 2.3
* 2.2: updated VERSION for 2.2.11 update CONTRIBUTORS for 2.2.11 updated CHANGELOG for 2.2.11 [HttpKernel] made a small optimization to Bundle initialization minor optimalization at bundle initialization [EventDispatcher] tweaked README removed observer pattern, in favour of mediator [DoctrineBridge] normalized class names in the ORM type guesser Fix `extract` method to avoid recalculating count() for each iteration. use the correct class name to retrieve mapped class' metadata and repository [WebProfilerBundle] Fixed js escaping in time.html.twig Conflicts: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig src/Symfony/Component/HttpKernel/Kernel.php
2 parents a9b8dfe + 6a9c223 commit 40c0972

File tree

9 files changed

+73
-27
lines changed

9 files changed

+73
-27
lines changed

CHANGELOG-2.2.md

+17
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ in 2.2 minor versions.
77
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
88
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v2.2.0...v2.2.1
99

10+
* 2.2.11 (2013-12-02)
11+
12+
* bug #9656 [DoctrineBridge] normalized class names in the ORM type guesser (fabpot)
13+
* bug #9647 use the correct class name to retrieve mapped class' metadata and reposi... (xabbuh)
14+
* bug #9643 [WebProfilerBundle] Fixed js escaping in time.html.twig (hason)
15+
* bug #9639 Modified guessDefaultEscapingStrategy to not escape txt templates (fabpot)
16+
* bug #9314 [Form] Fix DateType for 32bits computers. (WedgeSama)
17+
* bug #9443 [FrameworkBundle] Fixed the registration of validation.xml file when the form is disabled (hason)
18+
* bug #9625 [HttpFoundation] Do not return an empty session id if the session was closed (Taluu)
19+
* bug #9447 [BrowserKit] fixed protocol-relative url redirection (jong99)
20+
* bug #9535 No Entity Manager defined exception (armetiz)
21+
* bug #9485 [Acl] Fix for issue #9433 (guilro)
22+
* bug #9516 [AclProvider] Fix incorrect behavior when partial results returned from cache (superdav42)
23+
* bug #9537 [FrameworkBundle] Fix mistake in translation's service definition. (phpmike)
24+
* bug #9367 [Process] Check if the pipe array is empty before calling stream_select() (jfposton)
25+
* bug #9469 [Propel1] re-factor Propel1 ModelChoiceList (havvg)
26+
1027
* 2.2.10 (2013-11-13)
1128

1229
* bug #9499 Request::overrideGlobals() may call invalid ini value (denkiryokuhatsuden)

CONTRIBUTORS.md

+35-16
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ Symfony2 is the result of the work of many people who made the code better
5252
- Brandon Turner
5353
- Daniel Holmes (dholmes)
5454
- Jordan Alliot (jalliot)
55+
- Douglas Greenshields (shieldo)
5556
- John Wards (johnwards)
5657
- Fran Moreno (franmomu)
5758
- Bart van den Burg (burgov)
5859
- Antoine Hérault (herzult)
59-
- Michel Weimerskirch (mweimerskirch)
6060
- Toni Uebernickel (havvg)
61+
- Michel Weimerskirch (mweimerskirch)
6162
- Christian Raue
62-
- Douglas Greenshields (shieldo)
6363
- Arnaud Le Blanc (arnaud-lb)
6464
- marc.weistroff
6565
- Brice BERNARD (brikou)
@@ -68,9 +68,9 @@ Symfony2 is the result of the work of many people who made the code better
6868
- Włodzimierz Gajda (gajdaw)
6969
- Colin Frei
7070
- excelwebzone
71+
- Kevin Bond (kbond)
7172
- Fabien Pennequin (fabienpennequin)
7273
- Jacob Dreesen (jdreesen)
73-
- Kevin Bond (kbond)
7474
- Wouter De Jong (wouterj)
7575
- Adrien Brault (adrienbrault)
7676
- Michal Piotrowski (eventhorizon)
@@ -81,8 +81,10 @@ Symfony2 is the result of the work of many people who made the code better
8181
- Gábor Egyed (1ed)
8282
- David Buchmann (dbu)
8383
- Daniel Gomes (danielcsgomes)
84+
- Peter Kokot (maastermedia)
8485
- Jérémie Augustin (jaugustin)
8586
- Tigran Azatyan (tigranazatyan)
87+
- Rafael Dohms (rdohms)
8688
- Richard Shank (iampersistent)
8789
- Gordon Franke (gimler)
8890
- Helmer Aaviksoo
@@ -97,40 +99,39 @@ Symfony2 is the result of the work of many people who made the code better
9799
- Dmitrii Chekaliuk (lazyhammer)
98100
- Clément JOBEILI (dator)
99101
- Hiromi Hishida (77web)
102+
- Dorian Villet (gnutix)
100103
- Richard Miller (mr_r_miller)
101104
- Arnaud Kleinpeter (nanocom)
102-
- Rafael Dohms (rdohms)
103105
- Mario A. Alvarez Garcia (nomack84)
104106
- Dennis Benkert (denderello)
105107
- Eric GELOEN (gelo)
106108
- Benjamin Dulau (dbenjamin)
107109
- Andreas Hucks (meandmymonkey)
108110
- Noel Guilbert (noel)
111+
- Jérôme Tamarelle (gromnan)
109112
- Larry Garfield (crell)
110-
- Dorian Villet (gnutix)
111113
- Guilherme Blanco (guilhermeblanco)
112114
- Martin Schuhfuß (usefulthink)
113115
- Thomas Rabaix (rande)
116+
- Ait Boudad Abdellatif (aitboudad)
114117
- Matthieu Bontemps (mbontemps)
115118
- Pierre Minnieur (pminnieur)
116119
- fivestar
117120
- Dominique Bongiraud
118121
- Leszek Prabucki (l3l0)
122+
- François Zaninotto (fzaninotto)
119123
- Dustin Whittle (dustinwhittle)
120124
- jeff
121125
- Clemens Tolboom
122-
- Peter Kokot (maastermedia)
123126
- Justin Hileman (bobthecow)
124127
- Sven Paulus (subsven)
125128
- Joel Wurtz (brouznouf)
126129
- Rui Marinho (ruimarinho)
127-
- Jérôme Tamarelle (gromnan)
128130
- Julien Brochet (mewt)
129131
- Sergey Linnik (linniksa)
130132
- Marcel Beerta (mazen)
131133
- Francois Zaninotto
132134
- Alexander Kotynia (olden)
133-
- François Zaninotto (fzaninotto)
134135
- Danny Berger (dpb587)
135136
- Xavier Montaña Carreras (xmontana)
136137
- Xavier Perez
@@ -143,7 +144,6 @@ Symfony2 is the result of the work of many people who made the code better
143144
- GordonsLondon
144145
- Jan Sorgalla (jsor)
145146
- Ray
146-
- Ait Boudad Abdellatif (aitboudad)
147147
- Thomas Adam
148148
- Albert Casademont (acasademont)
149149
- jdhoek
@@ -162,11 +162,14 @@ Symfony2 is the result of the work of many people who made the code better
162162
- Manuel Kiessling (manuelkiessling)
163163
- Christian Flothmann (xabbuh)
164164
- Bertrand Zuchuat (garfield-fr)
165+
- Thomas Tourlourat (armetiz)
166+
- Andrey Esaulov (andremaha)
165167
- Grégoire Passault (gregwar)
166168
- Uwe Jäger (uwej711)
167169
- Aurelijus Valeiša (aurelijus)
168170
- Gustavo Piltcher
169171
- Stepan Tanasiychuk (stfalcon)
172+
- Bob den Otter (bopp)
170173
- Adrian Rudnik (kreischweide)
171174
- Francesc Rosàs (frosas)
172175
- Bongiraud Dominique
@@ -188,6 +191,7 @@ Symfony2 is the result of the work of many people who made the code better
188191
- Kristen Gilden (kgilden)
189192
- hossein zolfi (ocean)
190193
- Philipp Kräutli (pkraeutli)
194+
- Kirill chEbba Chebunin (chebba)
191195
- Greg Thornton (xdissent)
192196
- Atsuhiro KUBO (iteman)
193197
- sun (sun)
@@ -243,6 +247,7 @@ Symfony2 is the result of the work of many people who made the code better
243247
- Fabrice Bernhard (fabriceb)
244248
- Fabian Lange (codingfabian)
245249
- Yoshio HANAWA
250+
- Peter Rehm
246251
- Sebastian Bergmann
247252
- Pablo Díez (pablodip)
248253
- Kevin McBride
@@ -280,7 +285,6 @@ Symfony2 is the result of the work of many people who made the code better
280285
- Ivan Rey (ivanrey)
281286
- Marcin Chyłek (songoq)
282287
- Ned Schwartz
283-
- Thomas Tourlourat (armetiz)
284288
- Ziumin
285289
- Lenar Lõhmus
286290
- Zach Badgett (zachbadgett)
@@ -289,6 +293,7 @@ Symfony2 is the result of the work of many people who made the code better
289293
- Pavel Campr (pcampr)
290294
- Miha Vrhovnik
291295
- Geoffrey Tran (geoff)
296+
- Jan Behrens
292297
- Thomas Lallement (raziel057)
293298
- vitaliytv
294299
- Markus Bachmann (baachi)
@@ -344,12 +349,12 @@ Symfony2 is the result of the work of many people who made the code better
344349
- Lars Vierbergen
345350
- Mark Challoner
346351
- Andrew Tchircoff (andrewtch)
352+
- Daniel Tschinder
347353
- michaelwilliams
348354
- Leevi Graham (leevigraham)
349355
- Casper Valdemar Poulsen
350356
- Eduardo Gulias (egulias)
351357
- Josiah (josiah)
352-
- Peter Rehm
353358
- John Bohn (jbohn)
354359
- Andrew Hilobok (hilobok)
355360
- Christian Soronellas (theunic)
@@ -383,12 +388,11 @@ Symfony2 is the result of the work of many people who made the code better
383388
- Cyril Quintin (cyqui)
384389
- Gerard van Helden (drm)
385390
- Patrick Allaert
386-
- Kirill chEbba Chebunin (chebba)
387391
- Gustavo Falco (gfalco)
388392
- Aleksey Podskrebyshev
389-
- Bob den Otter (bopp)
390393
- David Marín Carreño (davefx)
391394
- Jörn Lang (j.lang)
395+
- Baptiste Clavié (talus)
392396
- julien pauli (jpauli)
393397
- mwsaz
394398
- Benoît Bourgeois
@@ -423,7 +427,6 @@ Symfony2 is the result of the work of many people who made the code better
423427
- Robert Gruendler (pulse00)
424428
- Simon Terrien (sterrien)
425429
- Benoît Merlet (trompette)
426-
- Jan Behrens
427430
- Raul Fraile (raulfraile)
428431
- sensio
429432
- Patrick Kaufmann
@@ -446,6 +449,7 @@ Symfony2 is the result of the work of many people who made the code better
446449
- dantleech
447450
- Tero Alén (tero)
448451
- DerManoMann
452+
- Guillaume Royer
449453
- Artem (digi)
450454
- dantleech
451455
- Vadim Tyukov (vatson)
@@ -455,6 +459,7 @@ Symfony2 is the result of the work of many people who made the code better
455459
- Máximo Cuadros (mcuadros)
456460
- Alex Bogomazov
457461
- julien.galenski
462+
- Christian Schmidt
458463
- Sébastien Lavoie (lavoiesl)
459464
- Per Sandström (per)
460465
- Lin Clark
@@ -463,6 +468,7 @@ Symfony2 is the result of the work of many people who made the code better
463468
- Ville Mattila
464469
- Ben Davies
465470
- Max Beutel
471+
- Catalin Dan
466472
- Piotr Antosik (antek88)
467473
- Artem Lopata
468474
- Marcos Quesada (marcos_quesada)
@@ -541,16 +547,19 @@ Symfony2 is the result of the work of many people who made the code better
541547
- ShiraNai7
542548
- Janusz Jabłoński (yanoosh)
543549
- George Giannoulopoulos
550+
- Daniel Richter (richtermeister)
544551
- Chris Wilkinson (thewilkybarkid)
545552
- Ilya Biryukov
546553
- Jason Desrosiers
547554
- m.chwedziak
548555
- Lance McNearney
556+
- Giorgio Premi
549557
- caponica
550558
- Matt Daum (daum)
551559
- Alberto Pirovano (geezmo)
552560
- Martin Pärtel
553561
- Xavier Briand (xavierbriand)
562+
- WedgeSama
554563
- Romain Geissler
555564
- Charles Sarrazin (csarrazi)
556565
- Marcus Stöhr (dafish)
@@ -584,6 +593,7 @@ Symfony2 is the result of the work of many people who made the code better
584593
- Jeremy Livingston (jeremylivingston)
585594
- Nicolas Schwartz (nicoschwartz)
586595
- Patrik Gmitter (patie)
596+
- Jonathan Gough
587597
- Benjamin Bender
588598
- Konrad Mohrfeldt
589599
- Benoit Lévêque (benoit_leveque)
@@ -598,6 +608,7 @@ Symfony2 is the result of the work of many people who made the code better
598608
- Jakub Škvára (jskvara)
599609
- Nicolas Badey (nico-b)
600610
- povilas
611+
- Alexander Obuhovich
601612
- Alessandro Tagliapietra (alex88)
602613
- Gunnar Lium (gunnarlium)
603614
- Tiago Garcia (tiagojsag)
@@ -606,6 +617,7 @@ Symfony2 is the result of the work of many people who made the code better
606617
- Harm van Tilborg
607618
- Martin Eckhardt
608619
- Leonid Terentyev
620+
- Jonathan Poston
609621
- Przemysław Piechota (kibao)
610622
- Adam Prager (padam87)
611623
- Francisco Facioni (fran6co)
@@ -617,7 +629,6 @@ Symfony2 is the result of the work of many people who made the code better
617629
- 2manypeople
618630
- Thomas Bibb
619631
- Josef Cech
620-
- Andrey Esaulov (andremaha)
621632
- Matthew Foster (mfoster)
622633
- Paul Seiffert (seiffert)
623634
- Vasily Khayrulin (sirian)
@@ -626,6 +637,7 @@ Symfony2 is the result of the work of many people who made the code better
626637
- stloyd
627638
- Chris Tickner
628639
- Andrew Coulton
640+
- David Stone
629641
- Luis Muñoz
630642
- Strate
631643
- Thomas Chmielowiec
@@ -690,6 +702,7 @@ Symfony2 is the result of the work of many people who made the code better
690702
- Julien DIDIER (juliendidier)
691703
- Martin Mayer (martin)
692704
- Grzegorz Łukaszewicz (newicz)
705+
- Rouven Weßling (realityking)
693706
- Robert Campbell
694707
- Matt Lehner
695708
- Alex Pods
@@ -722,27 +735,31 @@ Symfony2 is the result of the work of many people who made the code better
722735
- Osman Üngür (import)
723736
- Jorge Martin (jorgemartind)
724737
- Kevin Herrera (kherge)
738+
- Marek Štípek (maryo)
725739
- Matthew Davis (mdavis1982)
726740
- Muriel (metalmumu)
727741
- Michaël Perrin (michael.perrin)
728742
- Pablo Monterde Perez (plebs)
729743
- Rafał Wrzeszcz (rafalwrzeszcz)
730744
- Jimmy Leger (redpanda)
731-
- Baptiste Clavié (talus)
732745
- Cyrille Jouineau (tuxosaurus)
733746
- Yorkie Chadwick (yorkie76)
734747
- Yanick Witschi
748+
- Ondrej Mirtes
735749
- srsbiz
736750
- Nicolas A. Bérard-Nault
737751
- Gladhon
738752
- Saem Ghani
739753
- Stefan Oderbolz
754+
- Daniel Tschinder
740755
- Alexey Popkov
756+
- Joseph Deray
741757
- Arnaud Buathier (arnapou)
742758
- chesteroni (chesteroni)
743759
- Alexander M. Turek (derrabus)
744760
- Mauricio Lopez (diaspar)
745761
- Daniele Cesarini (ijanki)
762+
- Ismail Asci (ismailasci)
746763
- Simon CONSTANS (kosssi)
747764
- Ramon Henrique Ornelas (ramonornela)
748765
- Till Klampaeckel (till)
@@ -790,6 +807,7 @@ Symfony2 is the result of the work of many people who made the code better
790807
- Abdulkadir N. A.
791808
- Sema
792809
- Thorsten Hallwas
810+
- Daisuke Ohata
793811
- Michael Squires
794812
- Chris Smith
795813
- kwiateusz
@@ -806,6 +824,7 @@ Symfony2 is the result of the work of many people who made the code better
806824
- Christian Stocker
807825
- tirnanog06
808826
- phc
827+
- Michaël VEROUX
809828
- sualko
810829
- Nicolas Roudaire
811830
- Lee Rowlands

src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Symfony\Component\Form\Guess\Guess;
2020
use Symfony\Component\Form\Guess\TypeGuess;
2121
use Symfony\Component\Form\Guess\ValueGuess;
22+
use Doctrine\Common\Util\ClassUtils;
2223

2324
class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface
2425
{
@@ -153,6 +154,9 @@ public function guessPattern($class, $property)
153154

154155
protected function getMetadata($class)
155156
{
157+
// normalize class name
158+
$class = ClassUtils::getRealClass(ltrim($class, '\\'));
159+
156160
if (array_key_exists($class, $this->cache)) {
157161
return $this->cache[$class];
158162
}

src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public function validate($entity, Constraint $constraint)
7474
}
7575
}
7676

77-
$className = $this->context->getClassName();
78-
$class = $em->getClassMetadata($className);
77+
$class = $em->getClassMetadata(get_class($entity));
7978
/* @var $class \Doctrine\Common\Persistence\Mapping\ClassMetadata */
8079

8180
$criteria = array();
@@ -110,7 +109,7 @@ public function validate($entity, Constraint $constraint)
110109
}
111110
}
112111

113-
$repository = $em->getRepository($className);
112+
$repository = $em->getRepository(get_class($entity));
114113
$result = $repository->{$constraint->repositoryMethod}($criteria);
115114

116115
/* If the result is a MongoCursor, it must be advanced to the first

0 commit comments

Comments
 (0)