Populate 'created' property on attention
The 'created' column in attention SQL table has NOT NULL restriction.
This commit is contained in:
parent
1c478768ad
commit
e02bd34d26
@ -56,6 +56,7 @@ class Attention extends Managed_DataObject
|
||||
$att->notice_id = $notice->getID();
|
||||
$att->profile_id = $profile->getID();
|
||||
$att->reason = $reason;
|
||||
$att->created = common_sql_now();
|
||||
$result = $att->insert();
|
||||
|
||||
if ($result === false) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user