On Mon, 2006-04-03 at 01:18 +0300, Giannis Economou wrote:
> It is possible to have a Class::DBI object without an id, before the 
> insert really takes place. From Class::DBI perldoc:
> 
> The |before_create| trigger is invoked directly after storing the 
> supplied values into the new object and before inserting the record into 
> the database. The object stored in $self may not have all the 
> functionality of the final object after_creation, particularly if the 
> database is going to be providing the primary key value.

That's a trigger that gets called during the constructor, before the
object is returned.  You will never get anything back from create(),
retrieve(), or search() that doesn't have an ID.

- Perrin


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to