Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35606

Editor Primary Key

$
0
0

Hello,

i use the editor extension (1.3.3) and have a problem with the Primary Key.
My Primary Key is "ContentID" and i want to show the Keys in the first column.
The Problem is, that the generated SQL Statement selects two times the field and produce because of that an error:
SELECT ContentID as 'ContentID', ContentID as 'ContentID', ...

Editor::inst( $db, 'xContent')->pkey('ContentID')
    ->fields(
        Field::inst( 'ContentID', 'test' ),

Viewing all articles
Browse latest Browse all 35606

Trending Articles