{ES} - 3.7.2.3 Creado y modificado ("created" y "modified")

Al definir un campo created (creado) o modified (modificado) en tu tabla de la base de datos como campo de tipo datetime, CakePHP reconocerá esos campos y los rellenará automaticamente cuando un registro sea creado o grabado en la base de datos.

Los campos created y modified serán establecidos a la fecha y hora actuales cuando el registro es inicialmente añadido. El campo modified será actualizado con la fecha y hora actuales cuando el registro existente sea grabado.

Nota: Un campo llamado updated (actualizado) exhibirá el mismo comportamiento que modified. Estos campos necesitan ser del tipo datetime con el valor por defecto establecido a NULL para ser reconocidos por CakePHP.

{EN} - 3.7.2.3 created and modified

By defining a created or modified field in your database table as datetime fields, CakePHP will recognize those fields and populate them automatically whenever a record is created or saved to the database.

The created and modified fields will be set to the current date and time when the record is initially added. The modified field will be updated with the current date and time whenever the existing record is saved.

Note: A field named updated will exhibit the same behavior as modified. These fields need to be datetime fields with the default value set to NULL to be recognized by CakePHP.

Diferencias

Lines: 1-7Lines: 1-6
-<title>created and modified</title>
<p>By defining a <code>created</code> or <code>modified</code> field in your database table as <code>datetime</code> fields, CakePHP will recognize those fields and populate them automatically whenever a record is created or saved to the database.</p>
+<title&gt;Creado y modificado (&quot;created" y "modified")</title>
<p>Al definir un campo <code>created</code> (creado) o <code>modified</code> (modificado) en tu tabla de la base de datos como campo de tipo <code>datetime</code>, CakePHP reconoce esos campos y los rellenará automaticamente cuando un registro sea creado o grabado en la base de datos.</p>
-<p>The <code>created</code> and <code>modified</code> fields will be set to the current date and time when the record is initially added. The <code>modified</code> field will be updated with the current date and time whenever the existing record is saved.</p>

<p cla
ss="note">Note: A field named &lt;code>updated</code> will exhibit the same behavior as <code>modified</code>. These fields need to be datetime fields with the default value set to NULL to be recognized by CakePHP.</p>
+<p>Los campos <code>created</code> y <code>modified</code> serán establecidos a la fecha y hora actuales cuando el registro es inicialmenteadido. El campo <code>modified</code> se actualizado con la fecha y hora actuales cuando el registro existente sea grabado.</p>
 +<p class="note">Nota: Un campo llamado <code>updated</code> (actualizado) exhibirá el mismo comportamiento que <code>modified</code>. Estos campos necesitan ser del tipo <em>datetime</em> con el valor por defecto establecido a NULL para ser reconocidos por CakePHP.</p>