• Home
  • Consulting
  • Contact
  • About us
Yii2 Developer Exchange
  • Home
  • Consulting
  • Contact
  • About us

Articles Tagged: exists

Check if a record exists using ActiveRecord

In Yii2, if you’d like to check if a record exists in a table, use the following code: [php] Customer::find()->where( [ ’email’ => ‘jeff@yii2x.com’ ] )->exists(); [/php]

Read More →
learn yii2 the meeting planner startup tutorials

Recent Posts

  • Running Both WordPress and Yii2
  • Github: How to revert multiple commits
  • Tip on Passing Variable to Raw Custom Grid View Row
  • Yii2 Active Record Hidden Active Form Field or How to Hide an Active Form Field
  • Build comma separated string with conjunction
Sign Up With Digital Ocean - Fast SSD Hosting

Archives

  • April 2018
  • February 2018
  • January 2018
  • October 2017
  • September 2017
  • August 2017
  • May 2017
  • October 2016
  • May 2016
  • April 2016
  • February 2015
  • January 2015

Categories

  • 01 Getting Started
  • 02 Documentation
  • 03 Tutorials
  • 04 Community
  • 05 News
  • 06 Tips
  • 07 Extensions
  • 08 Applications
  • 09 Books
  • 10 Utilities
Web Hosting

Partner Sites

  • Meeting Planner
  • Politics of Possibility
  • Lookahead Consulting
  • Ubunturs
  • Publishing WordPress
  • Breakup Lessons
  • Home
  • Consulting
  • Contact
  • About us
Follow @Yii2x / © Copyright, Lookahead Consulting