DatatableBundle icon indicating copy to clipboard operation
DatatableBundle copied to clipboard

Embeddable field problem

Open ahurt2000 opened this issue 5 years ago • 0 comments

Hello, When using embeddables the getData fucntion at Waldo\DatatableBundle\Util\Factory\Query\DoctrineBuilder doesn't work.

We think that this could be solved:

Embeddables: Fields thats comes like alias.address.zipcode then the 331 line not work.

We suggest replace the line 331 inside the get_scalar_key function:

$_f = str_replace('.', '_', $_f);

by:

$pos = strpos($_f,'.');
if ($pos !== false) {
    $_f = substr_replace($_f,'_',$pos,strlen('.'));
}

What's do you oppinnion about it?

Thanks

ahurt2000 avatar Dec 04 '18 12:12 ahurt2000