Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
[Solved] Help with querybuilders GetSelect needed
I want to create a view in 184.108.40.206 and found that instruction:
$View = $Database->Select('rp.*') ->Select('p.Name', '', 'Permission') ->From('RolePermission rp') ->Join('Permission p', 'rp.PermissionID = p.PermissionID') ->GetSelect(); $Construct->View('vw_RolePermission', $View);
So I try:
$Database = Gdn::Database(); $Sql = $Database->Select('*')->From('User')->GetSelect();
But I receive that error: Fatal error: Call to undefined method Gdn_Database::Select()
How can I use the GetSelect function to get back the SQL I need for creating the view?