Files
piratepoet/lib/Models/NewsletterPost.php
Jan Jakeš 1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00

19 lines
399 B
PHP

<?php
namespace MailPoet\Models;
/**
* @property int $newsletter_id
* @property int $post_id
* @property string $updated_at
*/
class NewsletterPost extends Model {
public static $_table = MP_NEWSLETTER_POSTS_TABLE;
static function getNewestNewsletterPost($newsletter_id) {
return self::where('newsletter_id', $newsletter_id)
->orderByDesc('created_at')
->findOne();
}
}