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

Description
Hi!!
I´m using this bundle and i`m getting 'undefined index' error when I use an entity that has a primary key wich is a foreign key at the same time. This is my code:
public function getUserTableAction() {
$datatable = $this->get('lankit_datatables')->getDatatable('ErictelValetBundle:TDevices');
return $datatable->getSearchResults();
}
And this are the associations of entity TDevices:
Erictel\ValetBundle\Entity\TDevices:
type: entity
table: t_devices
id:
deviceInfo:
associationKey: true
fields:
jid:
type: string
length: 45
fixed: false
nullable: false
oneToOne:
deviceInfo:
targetEntity: TDeviceInfo
cascade: { }
mappedBy: null
inversedBy: null
joinColumns:
device_info_id:
referencedColumnName: id
orphanRemoval: false
manyToOne:
state:
targetEntity: TStates
cascade: { }
mappedBy: null
inversedBy: null
joinColumns:
state_id:
referencedColumnName: id
orphanRemoval: false
user:
targetEntity: TUsers
cascade: { }
mappedBy: null
inversedBy: null
joinColumns:
user_id:
referencedColumnName: id
orphanRemoval: false
serviceIsActive:
targetEntity: TServiceStateCodes
cascade: { }
mappedBy: null
inversedBy: null
joinColumns:
service_id:
referencedColumnName: id
orphanRemoval: false
lifecycleCallbacks: { }
And this is the error:
Notice: Undefined index: TDevices in /var/www/valet_parking/vendor/lankit/datatables-bundle/LanKit/DatatablesBundle/Datatables/Datatable.php line 562.
Can anybody help me??
Thanks in advance