Pascal Borreli
47948c8d2b
[Form] Fixed bug creating empty "1" directory in root
2011-04-28 01:06:38 +00:00
Francis Besset
72c074a101
[Session] Used \Locale::setDefault() when the locale is setted
2011-04-28 00:03:32 +02:00
Brouznouf
5712b3bd0e
[Serializer] [XmlEncoder] Add unit test for decoding / encoding root with attributes
2011-04-27 22:16:24 +02:00
Stepan Tanasiychuk
411997dc59
fix wrong method name
2011-04-27 23:15:27 +03:00
Fabien Potencier
25ae70eb75
[DoctrineBundle] fixed regression
2011-04-27 21:36:23 +02:00
Fabien Potencier
289d35a7ae
Merge remote branch 'opensky/form-interface-use-statements'
...
* opensky/form-interface-use-statements:
[Form] Remove unnecessary use statements in EventListeners
2011-04-27 18:23:04 +02:00
Jeremy Mikola
f59423626a
[Form] Remove unnecessary use statements in EventListeners
2011-04-27 12:18:45 -04:00
Fabien Potencier
5fab450c33
Merge remote branch 'sasezaki/fixed-typo-domcrawler'
...
* sasezaki/fixed-typo-domcrawler:
fixed typoe on Exception message
2011-04-27 18:00:49 +02:00
Fabien Potencier
b5e1e2cd39
Merge remote branch 'kriswallsmith/update-tweak'
...
* kriswallsmith/update-tweak:
added note about document_root removal
2011-04-27 18:00:29 +02:00
Fabien Potencier
6431881754
[DoctrineBundle] added auto-mapping support in XSD
2011-04-27 17:41:36 +02:00
Fabien Potencier
c846990459
[DoctrineBundle] added the possibility to disable a bundle when using auto_mapping
...
orm:
auto_mapping: true
mappings:
FOSUserBundle: false
2011-04-27 17:41:36 +02:00
Fabien Potencier
c752429d7c
[DoctrineBundle] removed the possibility to use auto_mapping when you have more than one entity manager
2011-04-27 17:41:36 +02:00
Fabien Potencier
dc85727b5a
[DoctrineBundle] added an auto-mapping option to let Symfony register all enabled bundle mappings
...
Most of the time, you just want to register all your bundle mappings. It's a bit
tedious to do it by hand, not because of the amount of configuration you need to
type, but mainly because you can easily forget to do so
(also see https://github.com/symfony/symfony/pull/502 ).
So, setting auto_mapping to true allows Symfony to automatically register the mappings
it founds in the enabled bundles (default is false).
Even if auto_mapping is true, you can still define your mappings to add some more
or to override the defaults.
This change means that the default configuration that works most of the time for
most people is simple:
orm:
auto_mapping: true
2011-04-27 17:41:36 +02:00
Fabien Potencier
32070f5f68
[DoctrineBundle] fixed service visibility
2011-04-27 17:35:12 +02:00
Joel Wurtz
f11cc2de0b
[Seriliazer] [XmlEncoder] Optimize conditions
2011-04-27 08:00:31 -07:00
Kris Wallsmith
abb61f48de
added note about document_root removal
2011-04-27 07:08:50 -07:00
sasezaki
3d85db8fbc
fixed typoe on Exception message
2011-04-27 23:04:13 +09:00
Joel Wurtz
b6a9935314
[Serializer] [XmlEncoder] Allow decoder to extract attributes in root element
2011-04-27 06:34:41 -07:00
Fabien Potencier
71330e91d0
[DoctrineBundle] simplified code
2011-04-27 13:51:22 +02:00
Fabien Potencier
0f5f28c039
Merge remote branch 'Brouznouf/patch-1'
...
* Brouznouf/patch-1:
[Serializer] Fix bug when denormalize a class in cache
2011-04-27 13:37:49 +02:00
Fabien Potencier
ffd8c31f3a
[DoctrineBundle] reindented some code for clarity
2011-04-27 12:46:25 +02:00
Fabien Potencier
059104a9e7
[DoctrineBundle] added back the possibility to define a single entity manager with a shorter syntax (same reasonning as the previous commit for DBAL)
2011-04-27 12:27:44 +02:00
Fabien Potencier
3f1d969fcd
[DoctrineBundle] fixed a unit test
2011-04-27 12:26:54 +02:00
Joel Wurtz
a56e271025
[Serializer] Fix bug when denormalize a class in cache
2011-04-27 03:24:52 -07:00
Fabien Potencier
e63c2e2315
[DoctrineBundle] added back the possibility to easily define one DBAL connection
...
The reasonning reads as follows:
Most users will only ever use one database connection (and probably one entity manager for that matter).
So, this most common use case should be as easy as possible to configure.
This is BC.
Before:
doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_mysql
dbname: Symfony2
user: root
password: null
After (optional):
doctrine:
dbal:
driver: pdo_mysql
dbname: Symfony2
user: root
password: null
2011-04-27 12:15:22 +02:00
Fabien Potencier
7395069b60
[DoctrineBundle] cleaned up code
2011-04-27 10:50:56 +02:00
Fabien Potencier
03511dea5c
[DoctrineBundle] removed the possibility to define an empty configuration for the DBAL (which does not make sense in real-life)
2011-04-27 10:37:08 +02:00
Fabien Potencier
55f9e6fb99
[DoctrineBundle] tweaked various exceptions to make it clear that the issue is related to Doctrine
2011-04-27 10:37:01 +02:00
Fabien Potencier
631393e29d
[DoctrineBundle] fixed CS
2011-04-27 10:15:03 +02:00
Fabien Potencier
aab56fa91e
[DoctrineBundle] moved some more definition to abstract definition
2011-04-27 10:15:02 +02:00
Fabien Potencier
f1b43450c3
[DoctrineBundle] removed parameters from orm.xml as they already have default values in the Configuration class
2011-04-27 10:14:59 +02:00
Fabien Potencier
35a32440c7
[DoctrineBundle] converted DBAL definition templates to abstract definitions
2011-04-27 09:47:43 +02:00
IamPersistent
22fd08531c
Merge branch 'master' into acl
2011-04-27 00:36:43 -07:00
Victor Berchet
d350e01e33
File & UploadedFile tweaks
2011-04-27 09:10:41 +02:00
Fabien Potencier
e96b39f060
updated UPDATE file
2011-04-27 08:56:11 +02:00
Fabien Potencier
00bfd10ca9
[HttpFoundation] refactored File management to be safer
2011-04-27 08:50:33 +02:00
Fabien Potencier
b7cd7115d1
[HttpFoundation] removed protected methods that were not used
2011-04-27 08:04:10 +02:00
Fabien Potencier
5bb9da4b6d
[HttpFoundation] renamed getDefaultExtension() to guessExtension()
...
The renamed method now returns null if it cannot guess the extension. It allows
the developper to know whether the extension has been guessed or not.
2011-04-27 08:03:19 +02:00
Fabien Potencier
a26de5ba58
[HttpFoundation] fixed CS
2011-04-27 08:03:15 +02:00
Fabien Potencier
854fbd7f68
[HttpFoundation] use realpath to ensure that there is no .. in file path (to match phpdoc)
2011-04-27 07:58:54 +02:00
Fabien Potencier
9f846997ef
Merge remote branch 'Infranology/normalize-bools'
...
* Infranology/normalize-bools:
capitalized 'boolean'
replaced 'bool' with 'Boolean'
2011-04-27 07:48:12 +02:00
Eriksen Costa
164ce5210d
capitalized 'boolean'
2011-04-27 02:35:10 -03:00
Eriksen Costa
4db0752894
replaced 'bool' with 'Boolean'
2011-04-27 02:35:03 -03:00
IamPersistent
cf803f30cd
Merge branch 'acl' of github.com:IamPersistent/symfony into acl
2011-04-26 21:58:15 -07:00
IamPersistent
806c534560
add provider to configuration
2011-04-26 21:57:17 -07:00
IamPersistent
ebcd6f4563
update DI to handle change in config and another provider
2011-04-26 21:57:17 -07:00
IamPersistent
314f361846
separate dbal specific acl config
2011-04-26 21:57:17 -07:00
Fabien Potencier
aa3ec504ae
removed File::getWebPath()
...
This has been removed for several reasons:
* the framework does not know where the document root is and should not care
* as the document root was static, it was impossible to have several document roots depending on some business rules (see next one)
* sometimes, the document root is not under the web root directory (so the logic of getWebPath() is not always correct)
* the feature was not used anywhere in the core
2011-04-27 06:49:05 +02:00
IamPersistent
616256725a
add provider to configuration
2011-04-26 21:43:33 -07:00
Francis Besset
886149fa00
[Validator] Refactoring DateTimeValidator and DateValidator
2011-04-27 00:14:31 +02:00