If $_primary is not defined, discover primary keys
from the information returned by describeTable().
protected _setupPrimaryKey ( ) : void | ||
리턴 | void |
protected function _setupPrimaryKey() { if (empty($this->_primary)) { $this->_primary = 'id'; } parent::_setupPrimaryKey(); }
protected function _setupPrimaryKey() { $this->_primary = 'blog_id'; parent::_setupPrimaryKey(); }