function initialize($object_name = FALSE) { parent::initialize($object_name); if (!isset($this->_primary_key_column)) { $this->_primary_key_column = $this->_lookup_primary_key_column(); } $this->migrate(FALSE); }
function initialize($object_name) { if (strlen($object_name) > 20) { throw new Exception("The custom post name can be no longer than 20 characters long"); } parent::initialize($object_name); }