public function findOrInit($table, $id, $data = array())
    {
        return $this->init($table)->findOrInit($id, $data);
    }
public function findOrInit($table, $id, $data = array())
    {
        return $this->init($table)->findOrInit($id, $data);
    }
public function findOrInit ( $ table , $ id , $ data = array ( ) ) { return $ this -> init ( $ table ) -> findOrInit ( $ id , $ data ) ; }
Find a record, if not found, create a new one from specified data

@param string $table The name of table
@param string $id The primary key value or an associative array containing column-value pairs
@param array $data The data to create a new record when record not found
@return Record
Find a record if not found create a new one from specified data