Defines the interface for a fixture that needs to manage constraints.
If an implementation of Cake\Datasource\FixtureInterface also implements this interface, the FixtureManager will use these methods to manage a fixtures constraints.
Build and execute SQL queries necessary to create the constraints for the fixture
Build and execute SQL queries necessary to drop the constraints for the fixture
createConstraints(Cake\Datasource\ConnectionInterface $connection): bool
Build and execute SQL queries necessary to create the constraints for the fixture
Cake\Datasource\ConnectionInterface $connection An instance of the database into which the constraints will be created.
booldropConstraints(Cake\Datasource\ConnectionInterface $connection): bool
Build and execute SQL queries necessary to drop the constraints for the fixture
Cake\Datasource\ConnectionInterface $connection An instance of the database into which the constraints will be dropped.
bool
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/interface-Cake.Database.ConstraintsInterface.html