Commit Graph

42380 Commits

Author SHA1 Message Date
Bernhard Schussek
e1be4e9689 [Form] Refactored logic to read and set values from Field to PropertyPath 2010-10-11 12:52:10 +02:00
Benjamin Eberlei
1fab031d4d Add missing EntityToIDTransformer files 2010-10-09 19:44:08 +02:00
ornicar
f667b6928f [TwigBundle] Add a template block to render CollectionField fields 2010-10-09 14:23:19 +02:00
ornicar
06a6b15e22 [Form] Fix FieldGroup::getHiddenFields, add tests for FieldGroup::getHiddenFields and FieldGroup::getVisibleFields 2010-10-09 14:20:06 +02:00
Masao Maeda
ade5fd6574 fixed: fixed the bug of request_panel.php in WebProfiler
When the session attributes don't exist, $data->sessionAttributes->getRawValue() cannot be called as not being defined.
So check the session attributes before calling getRawValue()
2010-10-08 15:53:41 +02:00
ornicar
5c406b9dc0 [FrameworkBundle] fixed typo in Translator 2010-10-08 11:57:38 +02:00
Fabien Potencier
e0961beb44 [FrameworkBundle] fixed typos (patch from Dennis.Verspuij) 2010-10-08 10:19:30 +02:00
Fabien Potencier
fa77f08893 fixed typo 2010-10-08 10:17:47 +02:00
Fabien Potencier
aa1cb87f60 [FrameworkBundle] clarified exception message in InitBundleCommand.php (patch from mvrhov) 2010-10-08 10:17:17 +02:00
Jordi Boggiano
12479cdd24 [TwigBundle] Simplified some code 2010-10-08 09:56:59 +02:00
henrikbjorn
7ad510d6ef Added --symlink option to assets:install command 2010-10-08 09:55:57 +02:00
henrikbjorn
18ba4fd567 changed autoload.php.dist namespace order 2010-10-08 09:54:57 +02:00
Fabien Potencier
fafcd02684 [HttpFoundation] changed RequestMatcher pattern syntax 2010-10-07 19:12:53 +02:00
Fabien Potencier
18caddec7a fixed typo 2010-10-06 16:33:39 +02:00
Jordi Boggiano
d8f4cb79c9 [Form] Turned FieldGroup::getFields() into 4 specialized methods for more flexibility
It's better to be able to fetch all the visible and all the hidden fields separately for display purposes (hidden fields in <ul> tags without an <li> do not validate)
2010-10-06 15:34:07 +02:00
Fabien Potencier
5019010539 fixed unit tests after the last commit 2010-10-06 14:44:02 +02:00
Jordi Boggiano
bf1eb56a34 [EventDispatched] Event doesn't need to implement ArrayAccess 2010-10-06 14:33:52 +02:00
Bulat Shakirzyanov
db3476aeaa [WebProfilerBundle] simplified DIC extension 2010-10-06 14:31:06 +02:00
Fabien Potencier
1d1a437edc added some missing methods 2010-10-06 14:18:36 +02:00
Benjamin Eberlei
ec3b3f7637 Added and tested EntityToIDTransformer to transform Many-To-One and One-To-One entities into their identifier values 2010-10-06 14:16:55 +02:00
Benjamin Eberlei
0d9d4ac583 Optimize some code in Form/Configurable, Have ChoiceField always pass data to transformers, implemented and fully unit-tested two Doctrine ORM specific transformers that do Collection to String/Choice Transformations 2010-10-06 14:16:51 +02:00
Benjamin Eberlei
f033fc5578 Refactor ValueTransformers to recieve the original value when reverseTransform() is called. This is required for expensive value transformations for example Doctrine Collections or Proxies to allow access to a value that does not trigger expensive operations (such as database calls) anymore. 2010-10-06 14:16:47 +02:00
Fabien Potencier
dbde494424 made locale determination for translation lazy-loaded
This allows to have a stateless-website (without any cookie)
for instance if the locale is part of the domain name
and not attached to the user.
2010-10-06 11:57:38 +02:00
Fabien Potencier
af8cb480a3 [FrameworkBundle] changed Template renderers to be lazy-loaded 2010-10-06 11:53:57 +02:00
Fabien Potencier
caa9d82746 [HttpFoundation] added support for attributes in RequestMatcher 2010-10-05 20:20:28 +02:00
Jonathan H. Wage
c0dc01d9b9 Fixing old path to new one. 2010-10-05 09:36:53 +02:00
Fabien Potencier
4cea8276e3 fixed Doctrine data fixtures path 2010-10-05 09:30:24 +02:00
Jonathan H. Wage
cc3ff12bf8 Fixing container test. 2010-10-05 09:29:42 +02:00
Fabien Potencier
c6ed593022 fixed unit tests 2010-10-05 09:05:29 +02:00
Jonathan H. Wage
3bc3115d8c Adding setLogger for data fixtures. 2010-10-05 09:00:38 +02:00
Jonathan H. Wage
ff683a694e Integrating new data fixtures code. 2010-10-05 09:00:33 +02:00
Fabien Potencier
2525998f6e replaced form field rendering with plain templates
Documentation available here:

http://docs.symfony-reloaded.org/master/guides/form/
2010-10-05 08:34:33 +02:00
ornicar
a38069288c Fix namespace collision 2010-10-04 14:02:35 +02:00
Fabien Potencier
c2f856f074 [FrameworkBundle] fixed comment 2010-10-04 14:01:33 +02:00
Fabien Potencier
e88c0b7fc5 [DoctrineBundle] fixed previous commit 2010-10-03 07:34:56 +02:00
Jonathan H. Wage
8fbf19694f Adding orm: and mongodb: annotation aliases to avoid conflicts. Recommended is to use the aliases instead of relying on the default namespace for annotations.
/** @orm:Entity */
/** @mongodb:Document */
2010-10-03 07:26:49 +02:00
Fabien Potencier
0fc8906feb [Validator] forced all validation annotations to be in the validation namespace to avoid collisions, removed the need for the wrapping @Validation annotation
Before:

    /**
     * @Validation({@DateTime()})
     */

After:

    /**
     * @validation:DateTime()
     */

The @validation:Validation() construct is not needed anymore (it is still supported
as this is useful when you have several annotations with the same class).

So, the above is equivalent to:

    /**
     * @validation:Validation({@validation:DateTime()})
     */
2010-10-02 15:07:00 +02:00
Fabien Potencier
3a4d9cb185 [Validation] fixed license 2010-10-02 12:42:35 +02:00
Fabien Potencier
4deb82f842 [Form] fixed license and phpdoc 2010-10-02 12:38:14 +02:00
Fabien Potencier
47bc809dc3 [TwigBundle] added tests for trans tag and filter 2010-10-02 09:39:48 +02:00
Fabien Potencier
77125288e7 [TwigBundle] updated nodes for the latest version of Twig 2010-10-02 09:39:29 +02:00
Fabien Potencier
8e654e8f9e [TwigBundle] added the trans filter 2010-10-01 22:20:03 +02:00
Fabien Potencier
68bff2d214 [TwigBundle] fixed trans tags 2010-10-01 22:19:59 +02:00
Fabien Potencier
3696066bfe [TwigBundle] fixed typo 2010-10-01 22:19:54 +02:00
Fabien Potencier
416bd7872e [TwigBundle] optimized calls to helpers 2010-10-01 20:50:31 +02:00
Fabien Potencier
3ce8ad1718 fixed HelpersExtension (removed usage of the magic _view context attribute -- helpers should now work from macros) 2010-10-01 20:30:12 +02:00
Fabien Potencier
eff1bdf50f [TwigBundle] made trans and transchoice tags more flexible
Both tags accept variables now:

    {% trans label %}

    {% transchoice %}
      {{ error }}
    {% endtranschoice %}

Optionally, the with keywords allows to pass the placeholder values:

    {% trans label with vars %}
2010-09-30 19:13:01 +02:00
Fabien Potencier
4297609156 [TwigBundle] moved translator helpers to their own extension (removed usage of the magic _view variable context) 2010-09-30 10:14:58 +02:00
Fabien Potencier
1a055fc7f0 [Validator] fixed typo 2010-09-30 07:21:54 +02:00
Jeremy Mikola
a6caa3d552 [FrameworkBundle] Replaced non-existent definition key 2010-09-30 07:18:10 +02:00