This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Jeremy Mikola df9ef79953 [Form] readPropertyPath should return null instead of empty array
When reading the last bit of a property path mapped to a missing array index, the method would initialize the value to an empty array.  This makes sense for cases where readPropertyPath would again be called recursively, but not when the value would be immediately returned (null would be preferable in that case).

For example, we have an object with a property called "options" that's an array of arbitrary key/value pairs.  That "options" property (and getOptions()) maps directly to a FieldGroup within the Form for this object.  That FieldGroup contains multiple TextFields for a few expected keys in the array.  As-is, if those keys were not defined, the default data set for those TextFields could end up being "Array" (string representation of an empty array).  If readPropertyPath instead returns null for this case, the default data would be transformed into an empty string.
2010-10-13 08:17:05 +02:00
src/Symfony [Form] readPropertyPath should return null instead of empty array 2010-10-13 08:17:05 +02:00
tests [Form] readPropertyPath should return null instead of empty array 2010-10-13 08:17:05 +02:00
.gitignore Added vendor directory to .gitignore 2010-06-24 10:44:28 +02:00
autoload.php.dist changed autoload.php.dist namespace order 2010-10-08 09:54:57 +02:00
install_vendors.sh fixed Doctrine data fixtures path 2010-10-05 09:30:24 +02:00
LICENSE added some Symfony 2 components 2010-01-04 15:26:20 +01:00
phpunit.xml.dist fixed PHPUnit configuration 2010-09-24 16:45:17 +02:00
README updated the README 2010-06-30 09:04:56 +02:00
update_vendors.sh fixed Doctrine data fixtures path 2010-10-05 09:30:24 +02:00

README
======

What is Symfony2?
-----------------

Symfony2 is a PHP 5.3 full-stack web framework. It is written with speed and
flexibility in mind. It allows developers to built better and easy to maintain
websites with PHP.

Symfony can be used to develop all kind of websites, from your personal blog
to high traffic ones like Dailymotion or Yahoo! Answers.

High Performance
----------------

Built with performance in mind, Symfony2 is one of the fastest PHP frameworks.
It is up to 3 times faster than symfony 1.4 or Zend Framework 1.10 and
consumes half the memory.

Requirements
------------

Symfony2 is only supported on PHP 5.3.2 and up.

Documentation
-------------

Symfony 2.0 is still in the early stages of development, but the
"[Quick Tour][1]" tutorial can get you started fast.

The "Quick Tour" tutorial barely scratches the surface of Symfony 2.0 but it
gives you a first feeling of the framework. If, like us, you think that
Symfony2 can help speed up your development and take the quality of your work
to the next level, visit the official [Symfony2 website][2] to learn more.

[1]: http://symfony-reloaded.org/learn
[2]: http://symfony-reloaded.org/