X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FGateway%2FTable%2FIdentity.php;h=41b5bafca49655a58d1153c5bdc954861b21e3f2;hp=fcc133bc3b372433f2fd4c11939478dab59eb8d5;hb=ccdcd2977c8bdc7c74b89b2fb7c2ea46479692b8;hpb=80c4d645e1650304b1dbcae85dbf17a6593896e4 diff --git a/lib/pq/Gateway/Table/Identity.php b/lib/pq/Gateway/Table/Identity.php index fcc133b..41b5baf 100644 --- a/lib/pq/Gateway/Table/Identity.php +++ b/lib/pq/Gateway/Table/Identity.php @@ -33,12 +33,12 @@ class Identity implements \Countable, \IteratorAggregate */ function __construct(Table $table) { $cache = $table->getMetadataCache(); - if (!($this->columns = $cache->get("$table#identity"))) { + if (!($this->columns = $cache->get("$table:identity"))) { $table->getQueryExecutor()->execute( new \pq\Query\Writer(IDENTITY_SQL, array($table->getName())), function($result) use($table, $cache) { $this->columns = array_map("current", $result->fetchAll(\pq\Result::FETCH_ARRAY)); - $cache->set("$table#identity", $this->columns); + $cache->set("$table:identity", $this->columns); } ); }