Esempio n. 1
0
 /**
  * Custom load
  *
  * @param int|string $id
  * @param string $field
  * @return $this
  */
 public function load($id, $field = null)
 {
     if (!is_numeric($id) && $field === null) {
         $this->_getResource()->load($this, $id, 'code');
         return $this;
     }
     return parent::load($id, $field);
 }