Text only
Yii SQL Expression
/raw/820288349a0714bd67714c28aba55eb1/
820288349a0714bd67714c28aba55eb1
text
Text only
4
2025-04-04T11:36:09
True
False
False
/api/public/snipt/6/
yii-sql-expression
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a>
<a href="#L-2">2</a>
<a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>\yii\db\Expression('NOW()')
</span><span id="L-2"><a name="L-2"></a>use yii\db\Expression;
</span><span id="L-3"><a name="L-3"></a>$model->date_created=new Expression('NOW()');
</span></pre></div>
</td></tr></table>