Hi all,
Is it possible to bind a Zend_Db_Table_Abstract with a stored procedure?
i.e. instead of :
class OptionReviewStatus extends Zend_Db_Table_Abstract
{
/**
* The table name.
*
* @var array
*/
protected $_name = 'tbloptionreviewstatus'; //Table name
/**
* The primary key column or columns.
*
* @var mixed
*/
protected $_primary = array('OptionStatusID');
}
to use something like this:
class OptionReviewStatus extends Zend_Db_Table_Abstract
{
/**
* The table name.
*
* @var array
*/
protected $_name = 'get_option_reviews'; // Stored procedure name
}
Thanks!
Nikos
--
The contents of this message may contain confidential or privileged information and is intended solely for the recipient(s). Use or distribution to and by any other party is not authorized. If you are not the intended recipient, copying, distribution or use of the contents of this information is prohibited.
Is it possible to bind a Zend_Db_Table_Abstract with a stored procedure?
i.e. instead of :
class OptionReviewStatus extends Zend_Db_Table_Abstract
{
/**
* The table name.
*
* @var array
*/
protected $_name = 'tbloptionreviewstatus'; //Table name
/**
* The primary key column or columns.
*
* @var mixed
*/
protected $_primary = array('OptionStatusID');
}
to use something like this:
class OptionReviewStatus extends Zend_Db_Table_Abstract
{
/**
* The table name.
*
* @var array
*/
protected $_name = 'get_option_reviews'; // Stored procedure name
}
Thanks!
Nikos
--
The contents of this message may contain confidential or privileged information and is intended solely for the recipient(s). Use or distribution to and by any other party is not authorized. If you are not the intended recipient, copying, distribution or use of the contents of this information is prohibited.
没有评论:
发表评论