forked from https://github.com/symfony/symfony
df9ef79953
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. |
||
---|---|---|
src/Symfony | ||
tests | ||
.gitignore | ||
autoload.php.dist | ||
install_vendors.sh | ||
LICENSE | ||
phpunit.xml.dist | ||
README | ||
update_vendors.sh |
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/