Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing describe() signature to match latest lithium's Source signatur…

…e, and implementing __toString() in BaseEntity
  • Loading branch information...
commit b1fb2211eb2b4b0194682bb29a713c2b4f0da2ca 1 parent e87e4aa
Mariano Iglesias authored
Showing with 11 additions and 2 deletions.
  1. +1 −1  extensions/data/source/Doctrine.php
  2. +10 −1 models/BaseEntity.php
2  extensions/data/source/Doctrine.php
View
@@ -188,7 +188,7 @@ public function sources($class = null) {}
* - `'type'`: The field type name
* @todo
*/
- public function describe($entity, array $meta = array()) {}
+ public function describe($entity, $schema = array(), array $meta = array()) {}
/**
* Defines or modifies the default settings of a relationship between two models.
11 models/BaseEntity.php
View
@@ -260,5 +260,14 @@ protected function _getData($allProperties = false) {
}
return $data;
}
+
+ /**
+ * String representation
+ *
+ * @return string String representation
+ */
+ public function __toString() {
+ return get_class($this) . '@' . spl_object_hash($this);
+ }
}
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.