Authored by ziy

去掉没有用的属性

@@ -24,11 +24,6 @@ class Table @@ -24,11 +24,6 @@ class Table
24 24
25 public $options = array(); 25 public $options = array();
26 26
27 - /**  
28 - * @var array  
29 - */  
30 - private $attributes = array();  
31 -  
32 private $whereList = array(); 27 private $whereList = array();
33 28
34 private $orderByList = array(); 29 private $orderByList = array();
@@ -274,11 +269,19 @@ class Table @@ -274,11 +269,19 @@ class Table
274 return $this->db()->fetchRow($this->_getSql($_columns), $this->parameterMap); 269 return $this->db()->fetchRow($this->_getSql($_columns), $this->parameterMap);
275 } 270 }
276 271
  272 + /**
  273 + * @param $name
  274 + * @param $value
  275 + */
277 public function __set($name, $value) 276 public function __set($name, $value)
278 { 277 {
279 $this->parameterMap[$name] = $value; 278 $this->parameterMap[$name] = $value;
280 } 279 }
281 280
  281 + /**
  282 + * @param $name
  283 + * @return mixed|null
  284 + */
282 public function __get($name) 285 public function __get($name)
283 { 286 {
284 if (isset($this->parameterMap[$name])) { 287 if (isset($this->parameterMap[$name])) {