-
Není to špatná komponenta, ale má jednu zásadní nevýhodu. Pokud do šablon předávám ve většině případů pouze Nette\Database\Selection nemám možnost v / mětodě titulek nastavit, nemám totiž k dispozic…
Kcko updated
10 years ago
-
Hi,
in Configurator.php in https://github.com/nette/bootstrap/blob/master/src/Bootstrap/Configurator.php#L36 use DatabaseExtension but nette/database package missing in composer.json (in require secti…
Budry updated
10 years ago
-
In dibi issue, @JanRossler [pointed out](https://github.com/dg/dibi/pull/140#issuecomment-49101450), that comparing table by its name may fail with multiple schemas. Imagine two tables with the same n…
milo updated
10 years ago
-
Nette has been split into separate "packages", but it's not currently (easily) possible to use only certain parts of Nette while keeping the framework functionality.
Example: I want to use all the Ne…
-
change $this->connection with $this
``` PHP
namespace Nette\Database;
class Context
{ public function table($table)
{
return new Table\Selection($this->connection, $table, $this->refle…
-
`$conn->table("Orders")->insert(...); // exception here`
![image](https://cloud.githubusercontent.com/assets/133822/3143021/6174ca54-e9e1-11e3-8f0b-533b552877a7.png)
(notice that getPrimarySequence() …
-
``` php
$source->where("DATE_FORMAT(`timestamp`, '%Y-%m') = ?", $value);
```
is translated to:
``` sql
WHERE (DATE_FORMAT(`timestamp`, '%Y-%`m`') = ?)
```
(m is wrongly escaped)
But if I change q…
-
Narazil jsem na problem, kde mam nastaveny filtr na urcity sloupec a upravim data ve sloupci, ktere neodpovidaji filtru, grid mi pada na vyjimce "Row not found"
Vysvetlim na prikladu, kdyz nastavim f…
-
In php 5.5 and 5.6 is broken sqlite implementation (detection) of primary keys.
Pragma returns primary keys now indexed, not "(int) bool" as earlier.
```
Nette\Database\Row #ca39
cid => 0
name => "bo…
hrach updated
10 years ago
-
Is there any reason why the Repository class doesn't have a method simmilar to createCollection that returns a single entity? It would save writing some repetitive code in findByFoo methods.
Of cour…