Base de ingrédient terminé
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
<h1>Coucou</h1>
|
||||
<?php $str = "Markdown **text**\n# SOLONG\n*text*."; $md = \App\Helpers\Markdown::convertToHTML( $str ); echo "<p>$md</p>"; ?>
|
||||
|
||||
<?php $rec = new \App\Domain\Recettes\RecetteRepository()->getByID( 4 );
|
||||
$rec->temps_de_preparation = 7;
|
||||
$rec->titre_recette = "Tutu";
|
||||
<?php
|
||||
/*
|
||||
$ing = new \App\Domain\Ingredients\Ingredient();
|
||||
$ing->num_ingredient = 0;
|
||||
$ing->nom_ingredient = "coucou";
|
||||
new \App\Domain\Ingredients\IngredientRepository()->add($ing);
|
||||
*/
|
||||
|
||||
new \App\Domain\Recettes\RecetteRepository()->delete( $rec );
|
||||
$recette = new \App\Domain\Recettes\RecetteRepository()->getByID( 2 );
|
||||
$ingredient = new \App\Domain\Ingredients\IngredientRepository()->getByID( 2 );
|
||||
// var_dump( $recette );
|
||||
// var_dump( $ingredient );
|
||||
|
||||
// new \App\Domain\Recettes\RecetteRepository()->removeAnIngredient( $ingredient, $recette );
|
||||
var_dump( $recette->getAllLinkedIngredients() );
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user