1 | <?php |
||
11 | class EntityOptionsBuilder extends AbstractOptionsBuilder |
||
12 | { |
||
13 | use Behavior\ChoiceTypeTrait; |
||
14 | use DataClassTrait; |
||
15 | use ByReferenceTrait; |
||
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | public static function getBuilderType() |
||
24 | |||
25 | /** |
||
26 | * @param string $class |
||
27 | * @return $this |
||
28 | * @link http://symfony.com/doc/current/reference/forms/types/entity.html#class |
||
29 | */ |
||
30 | public function setClass($class) |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getClass() |
||
42 | |||
43 | /** |
||
44 | * @param string $em |
||
45 | * @return $this |
||
46 | * @link http://symfony.com/doc/current/reference/forms/types/entity.html#em |
||
47 | */ |
||
48 | public function setEm($em) |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getEm() |
||
60 | |||
61 | /** |
||
62 | * @param string $groupBy |
||
63 | * @return $this |
||
64 | * @link http://symfony.com/doc/current/reference/forms/types/entity.html#group-by |
||
65 | */ |
||
66 | public function setGroupBy($groupBy) |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getGroupBy() |
||
78 | |||
79 | /** |
||
80 | * @param QueryBuilder|\Closure $queryBuilder |
||
81 | * @return $this |
||
82 | * @link http://symfony.com/doc/current/reference/forms/types/entity.html#query-builder |
||
83 | */ |
||
84 | public function setQueryBuilder($queryBuilder) |
||
88 | |||
89 | /** |
||
90 | * @return null|QueryBuilder|\Closure |
||
91 | */ |
||
92 | public function getQueryBuilder() |
||
96 | |||
97 | /** |
||
98 | * @param string $method |
||
99 | * @param array $params |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function setRepositoryMethod($method, $params = array()) |
||
108 | } |
||
109 |