Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (9 sloc) 0.272 kB
7c0c57c @beberlei Initial code
beberlei authored
1 <?php
2 // create_product.php
3 require_once "bootstrap.php";
4
5 $newProductName = $argv[1];
6
7 $product = new Product();
8 $product->setName($newProductName);
9
10 $entityManager->persist($product);
11 $entityManager->flush();
12
13 echo "Created Product with ID " . $product->getId() . "\n";
Something went wrong with that request. Please try again.