Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.26 KB

readme.md

File metadata and controls

35 lines (29 loc) · 1.26 KB

Arachne/EntityLoader

Build Status Coverage Status Latest stable Downloads this Month License

Enables object parameters in nette/application.

// Without EntityLoader
public function actionEdit($id)
{
	$article = $this->em->getRepository(Article::class)->find($id);
	if (! $article) {
		$this->error(); // 404
	}
	// ...
}

// With EntityLoader
public function actionEdit(Article $article)
{
	// ...
}

Documentation