Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$now = date('Y-M-d');
$checksub = $this->Subscriptions->find('all',['conditions'=>['Subscriptions.user_id'=>$user, 'Subscriptions.expiry >=' => $now]])->toArray();
debug($checksub);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.