IntegerType does not properly validate in GET.
When creating a request like this: /page?page=1
And considering I have this in my FormType:
$builder->add('page', 'integer', array(
'empty_data' => 1,
));
<?php | |
namespace Doctrine\Tests\ORM\Functional\Ticket; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\Common\Collections\Collection; | |
use Doctrine\Tests\OrmFunctionalTestCase; | |
/** | |
* Functional tests for orphan removal with one to many association. |
import React from 'react'; | |
class App extends React.Component { | |
render(): any { | |
return <div>Hello world!</div>; | |
} | |
} |
var path = require('path'); | |
var webpack = require('webpack'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
var ComponentPlugin = require('component-webpack-plugin'); | |
module.exports = (function (options) { | |
var root = path.join(__dirname, 'app', 'Resources', 'public'); | |
var stylesheetLoaders = ['css-loader']; | |
var plugins = [ | |
new webpack.PrefetchPlugin("react"), |
[ | |
"pn_apns" => [ | |
"aps" => [ | |
"alert" => "Joe: Hi", | |
"badge" => 3, | |
"sound" => "bingbong.aiff", | |
], | |
"conversation" => 12, | |
"message" => 12345, | |
], |
<?php | |
namespace Foo; | |
private class Speaker { | |
public function saySomething() { echo 'Hello world'; } | |
} | |
function sayHello() { | |
$b = new Bar(); |
diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | |
index 51791af..ad41841 100644 | |
--- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | |
+++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | |
@@ -941,6 +941,7 @@ class ClassMetadataInfo implements ClassMetadata | |
} | |
$parentReflFields[$property] = $reflService->getAccessibleProperty($this->name, $property); | |
+ $this->reflFields[$property] = $reflService->getAccessibleProperty($this->name, $property); | |
} |
IntegerType does not properly validate in GET.
When creating a request like this: /page?page=1
And considering I have this in my FormType:
$builder->add('page', 'integer', array(
'empty_data' => 1,
));
<?php | |
namespace Base\ComponentBundle\Form\Handler; | |
use Symfony\Component\Form\FormFactoryInterface; | |
use Symfony\Component\Form\FormInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException; | |
/** |
diff --git a/composer.json b/composer.json | |
index 80dc114..3b90dff 100644 | |
--- a/composer.json | |
+++ b/composer.json | |
@@ -31,6 +31,9 @@ | |
"autoload": { | |
"psr-0": { "Doctrine\\ORM\\": "lib/" } | |
}, | |
+ "autoload-dev": { | |
+ "psr-0": { "Doctrine\\Tests\\": "tests/" } |
define( | |
[], | |
function () { | |
"use strict"; | |
var Whatever = function () { | |
var that = (this === window) ? {} : this; | |
this.privateProp = []; | |