public function getPackageVersion()
 {
     $result = parent::getPackageVersion();
     if ($result === null) {
         $result = $this->pdo->findVersionById($this->packageVersionId);
         $this->setPackageVersion($result);
     }
     return $result;
 }
Esempio n. 2
0
 private function persistDependency(PackageLink $packageLink)
 {
     $data = array($packageLink->getVersion()->getId(), $packageLink->getPackageVersion()->getId());
     $sql = "INSERT INTO " . $this->getTablePrefix() . "dependency\n                (version_id, package_version_id)\n                VALUES\n                (?, ?)";
     $stmt = $this->pdo->prepare($sql);
     $stmt->execute($data);
 }