Skip to content

Commit 864f98e

Browse files
committed
Merge pull request NEKOGET#482 from torut/translation-orm_model_soft-1.8
translation orm/model/soft.html
2 parents 22a939b + 348dc29 commit 864f98e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/orm/model/soft.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ <h2>基本的な使用</h2>
6262
</section>
6363

6464
<section>
65-
<h2 id="settings">Settings</h2>
66-
<p>There are currently two extra settings that can be set for soft delete models.</p>
67-
<p><kbd>deleted_field</kbd> is the field that stores the timestamp. In the database this should be either a MySQL or unix timestamp and default to <kbd>NULL</kbd>. Any entries with a <kbd>NULL</kbd> timestamp are not deleted. The column name defaults to deleted_at.</p>
68-
<p><kbd>mysql_timestamp</kbd> is if the timestamp generated should be a MySQL timestamp or a unix timestamp. This defaults to <kbd>false</kbd> (use a unix timestamp).</p>
69-
<p>Example model with default settings:</p>
65+
<h2 id="settings">設定</h2>
66+
<p>論理削除モデルには 2 つの設定があります。</p>
67+
<p><kbd>deleted_field</kbd> はタイムスタンプを保存するカラム名を指定します。データベースでは MySQL タイムスタンプか UNIX タイムスタンプのいずれか、または <kbd>NULL</kbd> を保存します。<kbd>NULL</kbd> のタイムスタンプを持つレコードは削除されていません。デフォルトでは deleted_at というカラム名が指定されています。</p>
68+
<p><kbd>mysql_timestamp</kbd> <kbd>true</kbd> の場合は MySQL タイムスタンプを保存します。デフォルトでは <kbd>false</kbd> になっていて UNIX タイムスタンプを保存します。</p>
69+
<p>設定例:</p>
7070
<pre id="php"><code>class Model_Employee extends \Orm\Model_Soft
7171
{
7272
protected static $_soft_delete = array(
@@ -84,10 +84,10 @@ <h2 id="delete">削除</h2>
8484
</section>
8585

8686
<section>
87-
<h2 id="delete">Permanently Deleting</h2>
88-
<p>To delete a record permanently, call the <kbd>purge()</kbd> function on the object after selecting. This deletes the record permanently from the database.</p>
87+
<h2 id="delete">永久削除</h2>
88+
<p>レコードを永久に削除するにはレコードオブジェクトから <kbd>purge()</kbd> メソッドを呼び出します。これでこのレコードはデータベースから永久にさくじょされます。</p>
8989
<pre id="php"><code>$employee = Model_Employee::find(1);
90-
$employee->purge(); //The employee has now been deleted.</code></pre>
90+
$employee->purge(); // この従業員は永久に削除されました。</code></pre>
9191
</section>
9292

9393
<section>

0 commit comments

Comments
 (0)