PhpOrient - setOClass()

This method sets the class on the Record() object.

Setting Classes

When building records within your application this method allows you to define the class to which the record belongs in OrientDB.


  • <class> Defines the class name.


For instance, when creating a new Record() instance within your application, use this method to set the class.

function addEntry($data){

	// Log Operation
	echo "Creating Record";

	// Build Record
	$record = new Record()
			new ID(5))

	// Create Record
	global $client;