Take this example:
class User extends DomainObject
property $title = array('is_mandatory' => true)
property $profile_text = array('is_mandatory' => false, 'default' => "I'm new")
$user = new User();
$user->title = 'Unique title!';
$usermapper->populate($user);
Will create the query "SELECT * FROM users WHERE title = 'Unique title!' AND profile_text = 'I'm new'" because populate takes every value when building the query.
Take this example:
Will create the query "SELECT * FROM users WHERE title = 'Unique title!' AND profile_text = 'I'm new'" because populate takes every value when building the query.