Git Repository Public Repository

namibia

URLs

Copy to Clipboard

Diff Revisions ef31f3 ... vs bb3765 ... for module/Auction/src/Auction/Service/Auction.php

Diff revisions: vs.
  @@ -21,7 +21,6 @@
21 21 \Stock\Entity\Stock $stock, $previousState, array $routingData = array()
22 22 )
23 23 {
24 - \Utility\Debug::errorLog('initNewItemFromStock' , $stock);
25 24 #-> Establish initial increment value.
26 25 $increments = $this->em
27 26 ->getRepository('\Auction\Entity\Increment')
  @@ -37,7 +36,7 @@
37 36 }
38 37 #-> Create auction entry.
39 38 if (isset($routingData['profileId']))
40 - {\Utility\Debug::errorLog('reroute1' , "true");
39 + {
41 40 $profile = $this->em->find('User\\Entity\\Profile', $routingData['profileId']);
42 41 $email = $profile->email;
43 42 $firstName = $profile->firstName;
  @@ -48,7 +47,7 @@
48 47 $profile = $profile->id;
49 48 }
50 49 else
51 - {\Utility\Debug::errorLog('reroute1' , "false");
50 + {
52 51 $authData = \Utility\Registry::getAuthData();
53 52 $email = $authData['email'];
54 53 $firstName = $authData['firstName'];
  @@ -80,7 +79,7 @@
80 79 $stock->highestBid = 0.00;
81 80 $stock->timesListed = $stats['numAuctions'];
82 81 $this->em->flush($stock);
83 - \Utility\Debug::errorLog('created stock' , "true");
82 +
84 83 #-> Send loaded notification.
85 84 #-> Attachments.
86 85 $pdf = new \Auction\Pdf\Complete();