refactor relations
[m6w6/pq-gateway] / lib / pq / Gateway / Table / Identity.php
index fcc133bc3b372433f2fd4c11939478dab59eb8d5..41b5bafca49655a58d1153c5bdc954861b21e3f2 100644 (file)
@@ -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);
                                }
                        );
                }