3 namespace Doctrine\Tests\Models\StockExchange;
5 use Doctrine\Common\Collections\ArrayCollection;
9 * @Table(name="exchange_stocks")
14 * @Id @GeneratedValue @Column(type="integer")
20 * For real this column would have to be unique=true. But I want to test behavior of non-unique overrides.
22 * @Column(type="string")
27 * @Column(type="decimal")
32 * @ManyToOne(targetEntity="Market", inversedBy="stocks")
37 public function __construct($symbol, $initialOfferingPrice, Market $market)
39 $this->symbol = $symbol;
40 $this->price = $initialOfferingPrice;
41 $this->market = $market;
42 $market->addStock($this);
45 public function getSymbol()