Skip to content
This repository was archived by the owner on Mar 21, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Ndab/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ public function getAll($conds = array())


/**
* Returns row identified by $privaryValue
* @param mixed $privaryValue
* Returns row identified by $primaryValue
* @param mixed $primaryValue
* @return Entity
*/
public function get($privaryValue)
public function get($primaryValue)
{
return $this->table()->get($privaryValue);
return $this->table()->get($primaryValue);
}


Expand Down
2 changes: 1 addition & 1 deletion Ndab/Selection.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Selection extends Table\Selection
*/
public function __construct(Nette\Database\Connection $connection, $table, Manager $manager)
{
parent::__construct($connection, $this->table = $table);
parent::__construct($this->table = $table, $connection);
$this->manager = $manager;
}

Expand Down
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ndab/ndab",
"name": "achtan/ndab",
"description": "Ndab - ORM builded on Nette\\Database.",
"keywords": ["nette", "database", "orm", "db"],
"homepage": "https://github.com/hrach/ndab",
Expand All @@ -9,13 +9,18 @@
"name": "Jan Skrasek",
"email": "jan@skrasek.com",
"homepage": "http://jan.skrasek.com"
},
{
"name": "David Durika",
"email": "david@durika.sk",
"homepage": "http://durika.sk"
}

],
"autoload": {
"psr-0": { "Ndab": "" }
},
"require": {
"php": ">=5.3.2",
"nette/nette": "dev-master"
"php": ">=5.3.2"
}
}