Skip to content

Commit 247a94d

Browse files
committed
1 parent 8343ec5 commit 247a94d

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

fr/appendices/3-3-migration-guide.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ variations mineures qui peuvent avoir des effets sur votre application:
4545
* Le ``ErrorController`` par défaut ne désactive plus les components ``Auth`` et
4646
``Security``, puisqu'il n'étend plus ``AppController``. Si vous activez ces
4747
components avec des events, vous devrez mettre à jour votre code.
48+
* ``Entity::clean`` now cleans original values, clearing them on save. This
49+
behavior was a bug as the entity's original state should not be retained after
50+
a save, but instead reflect the new state of the entity.
4851

4952
Support du Middleware PSR7 Ajouté
5053
=================================

fr/controllers/middleware.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ their own response. We can see both options in our simple middleware::
241241
]);
242242
}
243243
return $response;
244+
}
244245
}
245246

246247
Now that we've made a very simple middleware, let's attach it to our

fr/migrations.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,20 @@ créé le fichier::
396396

397397
class RemovePriceFromProducts extends AbstractMigration
398398
{
399-
public function change()
399+
public function up()
400400
{
401401
$table = $this->table('products');
402-
$table->removeColumn('price');
402+
$table->removeColumn('price')
403+
->save();
403404
}
404405
}
405406

407+
.. note::
408+
409+
La commande `removeColumn` n'est pas réversible, donc elle doit être appelée
410+
dans la méthode `up`. Un appel correspondant au `addColumn` doit être
411+
ajouté à la méthode `down`.
412+
406413
Générer une Migration à partir d'une Base de Données Existante
407414
==============================================================
408415

fr/orm/associations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ tableau::
534534
public function initialize(array $config)
535535
{
536536
$this->belongsToMany('Tags', [
537-
'joinTable' => 'article_tag',
537+
'joinTable' => 'articles_tags',
538538
]);
539539
}
540540
}

fr/views/helpers/form.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,8 @@ Génère un ensemble d'inputs pour un contexte donné. Vous pouvez spécifier le
17471747
champs générés en les incluant::
17481748

17491749
echo $this->Form->inputs([
1750-
'name' => ['label' => 'custom label']
1750+
'name',
1751+
'email'
17511752
]);
17521753

17531754
Vous pouvez personnaliser le texte de légende en utilisant une option::

0 commit comments

Comments
 (0)