Skip to content
This repository was archived by the owner on May 14, 2022. It is now read-only.
This repository was archived by the owner on May 14, 2022. It is now read-only.

Documentation for adding a calculated field #9

@waldo2188

Description

@waldo2188

Hi,
is it possible to add documentation for how to add calculated fields.

In my case, I have a oneToMany relationship and i want to know how much row has the entity.

For exemple :

$datatable = $this->get('lankit_datatables')->getDatatable('WaldoMyBundle:Customer');
$datatable->setSelect("COUNT(Customer.shoppingCart) as nbShoppingCart");
        return $datatable->getSearchResults();

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions