--- a/classes/bfw/core/Entity.php
+++ b/classes/bfw/core/Entity.php
@@ -20,7 +20,7 @@
* @method setId($param)
*/
class Entity {
- protected $logger = null;
+ protected $logger;
protected $table;
protected $db;
@@ -31,7 +31,7 @@
* @param $table
*/
public function __construct($table) {
- $this->logger = Logger::getLogger('__CLASS__');
+ $this->logger = Logger::getLogger(get_class($this));
$this->db = Database::getInstance();
@@ -105,7 +105,7 @@
* <b>Die Findall Methode erzeugt typsicher den Supertyp</b>
*
* @param bool|false $sys
- * @return Model[]
+ * @return Entity[]
*/
public function findAll($sys = false) {
$this->logger->info(sprintf('%s() ', __METHOD__));
@@ -135,7 +135,8 @@
*
* @param $field
* @param $value
- * @return Model
+ *
+ * @return Entity
*/
public function findByField($field, $value) {
$this->logger->info(sprintf('%s(%s, %s) ', __METHOD__, $field, $value));
@@ -156,7 +157,8 @@
* Erzeugt on the fly ein array mit dem Supertyp der Klasseninstanz
* @param $field
* @param $value
- * @return Model[]
+ *
+ * @return Entity[]
*/
public function findAllByField($field, $value) {
$this->logger->info(sprintf('%s(%s, %s) ', __METHOD__, $field, $value));