Answer the question
In order to leave comments, you need to log in
How to check multiple fields for uniqueness?
Described the BookTable entity:
class BookTable extends Entity\DataManager
{
public static function getMap()
{
return array(
new Entity\IntegerField('ID'),
new Entity\StringField('ISBN'),
new Entity\StringField('TITLE'),
);
}
}
BookTable::update()
instead BookTable::add()
if one of the rows of the table already has the added values of the ISBN and TITLE fields (that is, this pair is not unique)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question