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

How to render row even if joined entity is null #28

Open
andrzejdziekonski opened this issue Aug 24, 2016 · 2 comments
Open

How to render row even if joined entity is null #28

andrzejdziekonski opened this issue Aug 24, 2016 · 2 comments

Comments

@andrzejdziekonski
Copy link

From bundle README example:

"aoColumns": [
{ "mData": "id" },
{ "mData": "description" },
{ "mData": "customer.firstName" },
{ "mData": "customer.lastName" },
{ "mData": "customer.location.address" }
]

let's say i got 2 entities one with customer join set , and other one with customer being null. In this case datatable will render only one row (as i want it to render firstName, lastName, etc). How to manage this if i want both rows to be shown?

@maryisdead
Copy link

Having the same issue. Rows having no joined entity are simply filtered out even though I would like them to show.

@maryisdead
Copy link

I take that back and apologize for my premature comment. It's clearly stated how to do this in the docs.

Adding

$datatable->setDefaultJoinType(Datatable::JOIN_LEFT);

solved that issue for me. Sorry again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants