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
Fabien Potencier 462070058a merged branch blogsh/constraints (PR #1393)
Commits
-------

2f78a44 Changed recognition of constraints in annoations

Discussion
----------

[Validator] Changed recognition of constraints in annotations

I accidently added a constraint to a setter method of an entity:

    /**
     * @Assert\MinLength(2)
     */
    public function setName($name)
    { ... }

The result was that the framework generated the following exception:

     Neither method getTName nor isTName exists in class Blogsh\TestBundle\Entity\User

The problem is that ClassMetadata::addGetterConstraint is called even if the inspected method isn't a getter or an isser.The fix changes the behaviour so that an exception is thrown, saying that it is not valid to add a constraint there. I'm not sure whether this is the right way to handle that problem. It would also be possible to remove the exception and just ignore constraints added to inapplicable methods.
However, the fix prevents the strange error messages from the user.
2011-06-21 21:26:42 +02:00
src/Symfony Changed recognition of constraints in annoations 2011-06-21 19:30:26 +02:00
tests merged branch Seldaek/url_validator (PR #1370) 2011-06-21 18:10:17 +02:00
.gitignore Added vendor directory to .gitignore 2010-06-24 10:44:28 +02:00
autoload.php.dist [AsseticBundle] moved the bundle to its own repository -- https://github.com/symfony/AsseticBundle 2011-06-15 22:09:24 +02:00
check_cs fixed root search path to include only './src' and './tests' 2011-06-08 18:11:05 +02:00
LICENSE added the LICENSE file for the YAML component 2011-02-18 11:52:11 +01:00
phpunit.xml.dist [Security] cleaned up opt-in to benchmark test 2011-03-06 20:06:13 +01:00
README.md updated the README file 2011-05-24 17:27:37 +02:00
UPDATE.ja.md translated UPDATE file into Japanese (BETA5) 2011-06-18 19:48:51 +09:00
UPDATE.md Adjusted UPDATE 2011-06-21 17:18:34 +02:00
vendors.php updated Doctrine to master (Symfony2 will ship with Doctrine 2.1) 2011-06-16 16:13:21 +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 build 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.

Requirements

Symfony2 is only supported on PHP 5.3.2 and up.

Installation

The best way to install Symfony2 is to download the Symfony Standard Edition available at http://symfony.com/download.

Documentation

The "Quick Tour" tutorial 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, read the official Symfony2 documentation.