[eluser]Maglok[/eluser]
Awesome library.
I have a question. I added a meta to users called 'app_id', which connects the user to an application.
In my delete application function I want to delete both the user and the application. I have the application id, so I am trying to detect if there is a user that has the app_id == application id.
I found the extra_where() function, but I am unsure of how to use it. I could query the meta table and all, but I have a feeling ion auth can do it for me.
This is what I have so far:
Code:
function delete_application($app_id) {
// Check to see if there is a user connected to the application
echo $this->ion_auth->extra_where("meta.aanmeldig_id = '" . $app_id . "'");
I need the id of the user that has the application connected to it, so I can do a delete_user.