public function setForeignKey(string $keyName, int $value): void
	{
		if ($this->storage instanceof NetteDatabaseStorage) {
			$this->storage->setForeignKey($keyName, $value);
		} elseif ($this->storage instanceof NextrasOrmStorage) {
			$this->storage->setForeignKey($keyName, $value);
		} else {
			throw new InvalidArgumentException('Storage is not database');
		}
	}
public function setForeignKey(string $keyName, int $value): void
	{
		if ($this->storage instanceof NetteDatabaseStorage) {
			$this->storage->setForeignKey($keyName, $value);
		} elseif ($this->storage instanceof NextrasOrmStorage) {
			$this->storage->setForeignKey($keyName, $value);
		} else {
			throw new InvalidArgumentException('Storage is not database');
		}
	}
public function setForeignKey ( string $ keyName , int $ value ) : void { if ( $ this -> storage instanceof NetteDatabaseStorage ) { $ this -> storage -> setForeignKey ( $ keyName , $ value ) ; } elseif ( $ this -> storage instanceof NextrasOrmStorage ) { $ this -> storage -> setForeignKey ( $ keyName , $ value ) ; } else { throw new InvalidArgumentException ( 'Storage is not database' ) ; } }
Nastavi cizi klic
@param string $keyName
@param int $value
Nastavi cizi klic