

Create an alias of a column
Posted 26 June 2012 - 09:31 AM

Posted 26 June 2012 - 09:59 AM
// $crud->set_relation('category_id','categories','name');
The name appears at your table or still it is not appearing there?
Posted 26 June 2012 - 10:07 AM
Posted 26 June 2012 - 12:19 PM
Posted 26 June 2012 - 12:35 PM

Posted 29 June 2012 - 04:07 AM

Posted 29 June 2012 - 06:26 AM
A user had a similar problem and he solve it in this workaround: https://github.com/s...-crud/issues/71
Perhaps it should help. This bug will be fixed as for next version.
Posted 29 June 2012 - 06:58 AM

Posted 02 July 2012 - 07:21 AM

Posted 02 July 2012 - 18:12 PM
Posted 03 July 2012 - 05:59 AM

Posted 17 December 2012 - 14:19 PM
In Articles table we have:
Author - varchar
Author2 - varchar
In Bio we have:
Author - varchar
We're linked via the name string (and yes, I know we should be linked via the Bio table's key column, but that decision was made in 2001 about 11 years before I showed up).
In the CRUD setup we have:
$crud->set_table('news')
->set_subject('Articles')
->columns('Title','Author','Publish','x')
and
$crud->set_relation('Author','bio','Author');
$crud->set_relation('Author2','bio','Author');
The issue is on the first page (where the list of articles is shown) - the Author's column is empty.
It would be awesome to have the columns (or any other field) be able to be explicitly declared with a {table_name}.{field} declaration which would solve these issues, apart from that is there any chance of a work around which will work for me?