Database Business Interface
Write Business Methods
interface PersonApi
{
#[DbalWrite("INSERT INTO persons VALUES (:personId, :name)")]
public function register(int $personId, string $name): void;
}Custom Parameter Name
#[DbalWrite('INSERT INTO persons VALUES (:personId, :name)')]
public function register(
#[DbalParameter(name: 'personId')] int $id,
string $name
): void;Returning number of records changed
Query Business Methods
Fetching Mode
First Column Fetch Mode
First Column of first row Mode
First Row Mode
Returning Nulls
Returning Iterator
Parameter Types
Last updated
Was this helpful?