You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Composite $composite`| In the global search all columns are connected as or. In the advanced search all columns are combined with an and-connection. With `$composite` more parts can be added to the query. |
319
+
|`Composite $composite`| In the global search all columns are connected as or. In the advanced search all columns are combined with an and-connection. With `$composite` more parts can be added to the query. `Composite` is the parent class of `AndX` and `OrX`. |
321
320
|`QueryBuilder $qb`|`$qb` holds the use QueryBuilder. It is the same instance as can be queried with `getQueryBuilder()` in the table class. |
322
-
|`$dql`|`$dql` represents the "path" to the variable in the query (e.g. `user.username` or in case of a JOIN `costCentre.name`) |
323
321
|`$search`| The search in the type of a string. |
324
-
|`$key`| The index of the columns already gone through. The index is used for parameter binding to the query. |
325
322
326
323
327
324
@@ -347,6 +344,8 @@ All options of TextColumn.
347
344
#### Example
348
345
349
346
```php
347
+
use HelloSebastian\HelloBootstrapTableBundle\Columns\BooleanColumn;
348
+
350
349
->add('isActive', BooleanColumn::class, array(
351
350
'title' => 'is active',
352
351
'trueLabel' => 'yes',
@@ -373,6 +372,8 @@ All Options of TextColumn
373
372
#### Example
374
373
375
374
```php
375
+
use HelloSebastian\HelloBootstrapTableBundle\Columns\DateTimeColumn;
376
+
376
377
->add('createdAt', DateTimeColumn::class, array(
377
378
'title' => 'Created at',
378
379
'format' => 'd.m.Y'
@@ -394,11 +395,47 @@ All Options of TextColumn.
394
395
#### Example
395
396
396
397
```php
398
+
use HelloSebastian\HelloBootstrapTableBundle\Columns\HiddenColumn;
399
+
397
400
->add("id", HiddenColumn::class)
398
401
```
399
402
400
403
401
404
405
+
### CountColumn
406
+
407
+
Represents column for counting OneToMany relations (for ArrayCollection attributes).
408
+
409
+
*Only works with direct attributes so far. For example, "users" would work in a `DepartmentTable`, but "users.items" would not.*
410
+
411
+
#### Options
412
+
413
+
All Options of TextColumn.
414
+
415
+
`filter` is set to `array(CountFilter::class, array())` by default.
| primaryKey | string | "id" | Primary key of the target entity in the OneToMany relation. <br />For example: A user is in one deparment. One department has many users. In the user entity there is a `$department` attribute that is pointing to the department entity. With this option you specify the primary key of the department entity (the target entity). |
639
+
640
+
#### Example
641
+
642
+
```php
643
+
use HelloSebastian\HelloBootstrapTableBundle\Filters\CountFilter;
0 commit comments